Skip to content
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

doc/tutorial/kubernetes: investigate issues when running CUE_UPDATE=1 go test ./... #815

Closed
cueckoo opened this issue Jul 3, 2021 · 2 comments

Comments

@cueckoo
Copy link
Collaborator

cueckoo commented Jul 3, 2021

Originally opened by @myitcv in cuelang/cue#815

Using Go 1.16 and running:

CUE_UPDATE=1 go test ./...
  • All doc/tutorial/kubernetes/quick/cue.mod/gen/**/*.cue files are removed
  • We don't get a test failure when it looks/feels like we should
  • We still don't get a test failure when running go test ./... subsequently, despite the fact that there is a massive diff
@cueckoo cueckoo added this to the v0.3.0-evaluator-rewrite milestone Jul 3, 2021
@cueckoo cueckoo closed this as completed Jul 3, 2021
@cueckoo
Copy link
Collaborator Author

cueckoo commented Jul 3, 2021

Original reply by @myitcv in cuelang/cue#815 (comment)

Initial analysis: this appears to be related to Go 1.16. Running the above sequence with Go < 1.16 "works" in so far as the doc/tutorial/kubernetes/quick/cue.mod/gen/**/*.cue files are not removed.

@cueckoo
Copy link
Collaborator Author

cueckoo commented Jul 3, 2021

Original reply by @myitcv in cuelang/cue#815 (comment)

One issue identified by this analysis was a missing go mod init step in the tutorial. That was fixed in cuelang/cue@b51368e. The issues regarding CUE_UPDATE=1 go test ./... are wider and intrinsically linked to the current tutorial setup. Fixing that setup in a sustainable way (that will also form the basis for other tutorials) is captured in cuelang/cue#824, but is not a short-term priority. Hence closing this issue, as there is no longer an immediate pre-v0.3.0 problems to solve with respect to the K8s tutorial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant