Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consider the following scenario: example.com/blah is a command (i.e. Go main package) that is configured via CUE files passed via -config flags. The author of the tool wants to make the CUE definitions used to validate the config available publicly and hence runs cue get go --local as part of a go:generate directive. Currently this results in *_gen.cue files which have a package name of main. This isn't particularly useful for a consumer of this CUE package because the import path is example.com/blah, hence an import would need to look like example.com/blah:main. Instead we now offer a --package (-p) flag for the get go command which allows overriding of the package name for the generated CUE files. Change-Id: Id04f0403b962c4f35da64a676a50d641f18a1eac Reviewed-on: https://cue-review.googlesource.com/c/cue/+/6801 Reviewed-by: Marcel van Lohuizen <mpvl@golang.org> Reviewed-by: CUE cueckoo <cueckoo@gmail.com>
- Loading branch information