-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Attempting to install an unreleased package #4344
Comments
There is no problem with installing an unreleased package; let's first look at your error:
It sure is: just use |
Neat, thanks!
Indeed; I suppose my point was that if Opam is going to assume a version for unreleased / unpinned packages then it might make sense for it to also prompt me to pin at that version. I'm happy either way, since
Do you think it's possible to alter the error message here so that the user is more aware of this intermediate step? |
Messages have improved and are still being worked on; the options to set the pinning version have been added so I think this can be closed. Thanks for reporting! |
Given the following set of Opam files in a local directory:
Attempting to run a local install will fail:
Pinning both packages to a common version such as
dev
fixes the problem (unfortunately, I don't think it's possible to do that in a singleopam
invocation). My questions are:should it be possible to install a local
.opam
file without that file needing to be released in the repository? This is an issue when a new package has recently been added to a monorepo, but no release cycle has occurred yet. Perhapsopam
should automatically pin such packages todev
when it encounters them?regardless, the error message for this install is a bit opaque. Could it be improved to something like "No version of
unreleased
is available to install"?CC: @pascutto
The text was updated successfully, but these errors were encountered: