Open nxcc opened 1 year ago
Did you by any chance test older CUE versions? It would be interesting to see if this was a regression between v0.5.0 and v0.6.0, for example.
Certainly a bug to be fixed, either way.
I also wonder why the earlier fix at https://review.gerrithub.io/c/cue-lang/cue/+/542725 wouldn't be enough here; we should be sorting the files as we load them, so the order they are fed in should not matter at all.
cue 0.5.0 also shows this issue
I also wonder why the earlier fix at https://review.gerrithub.io/c/cue-lang/cue/+/542725 wouldn't be enough here; we should be sorting the files as we load them, so the order they are fed in should not matter at all.
On second thought, what you're doing here is not swapping the order of files in the command line, you're renaming one so that it ends up in a different lexicographical order. So the earlier CL is unrelated.
Yes, sorting seems to work. It's about order of parsing/executing that is influenced by order of reading.
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest stable release?
yes
What did you do?
testscript:
What did you expect to see?
What did you see instead?
Comment
disabling the first line (exec mv...) make this test pass, so failure depends on the file order (alphabetical)