Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/cue: repurpose modinit test for language.version
Since we added fallbackVersion in https://cuelang.org/cl/1177860, the norm is for `cue mod init` to add a language.version field, and it should only be skipped in the rare case where a version exists but it is somehow invalid, such as being inserted via ldflags. All other modinit tests already check that we insert a version by using $CUE_VERSION_OVERRIDE like this test used to. Make this test useful by testing the now-rare edge case of no version. Also make setting CUE_EXPERIMENT=modules explicit rather than via the _registry directory, which is less obvious and more verbose. Signed-off-by: Daniel Martí <[email protected]> Change-Id: Ieb92e397b472323bf0d00df17fa3093cf259450c Dispatch-Trailer: {"type":"trybot","CL":1182873,"patchset":1,"ref":"refs/changes/73/1182873/1","targetBranch":"master"}
- Loading branch information