-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the +=
opetator in build-env
to prepend an empty (but set) variable adds a trailing seperator
#5925
Comments
NV_VARS6 and NV_VARS8 should be foo (no colons)
NV_VARS6 and NV_VARS8 should be foo (no colons)
OK, I've been looking at this in more detail with the preparatory work in #5935. Cross-referencing a slew of other previous issues in this area to be sure we don't accidentally regress them (because the fixes predate the reftests infrastructure):
With that history paged in, I still think this issue is unequivocally a bug (i.e. the docs are correct and opam isn't adhering to them). It might be relevant to see whether OPAM 1.2.2 was doing this, in terms of assessing whether fixing this may cause a regression. |
NV_VARS5925_1 thru _4 should all be foo (i.e. without no colon)
Ensure that if opam has internally synthesised an empty environment variable, then adding to it doesn't create a stray colon.
NV_VARS5925_1 thru _4 should all be foo (i.e. without no colon)
Ensure that if opam has internally synthesised an empty environment variable, then adding to it doesn't create a stray colon.
NV_VARS5925_1 thru _4 should all be foo (i.e. without no colon)
Ensure that if opam has internally synthesised an empty environment variable, then adding to it doesn't create a stray colon.
NV_VARS5925_1 thru _4 should all be foo (i.e. without no colon)
Ensure that if opam has internally synthesised an empty environment variable, then adding to it doesn't create a stray colon.
NV_VARS5925_1 thru _4 should all be foo (i.e. without no colon)
Ensure that if opam has internally synthesised an empty environment variable, then adding to it doesn't create a stray colon.
NV_VARS5925_1 thru _4 should all be foo (i.e. without no colon)
Ensure that if opam has internally synthesised an empty environment variable, then adding to it doesn't create a stray colon.
NV_VARS5925_1 thru _4 should all be foo (i.e. without no colon)
Ensure that if opam has internally synthesised an empty environment variable, then adding to it doesn't create a stray colon.
Ensure that if opam has internally synthesised an empty environment variable, then adding to it doesn't create a stray colon.
Ensure that if opam has internally synthesised an empty environment variable, then adding to it doesn't create a stray colon.
NV_VARS5925_1 thru _4 should all be foo (i.e. without no colon)
Ensure that if opam has internally synthesised an empty environment variable, then adding to it doesn't create a stray colon.
This is contrary to the documentation here:
To reproduce, put the following in a file named
foo.opam
:Then run:
The output will be be:
But according to the documentation the output should be:
I'm on linux. Reproduced on both 2.1.5 and opam-2.2.0-beta2.
The text was updated successfully, but these errors were encountered: