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

cmd/cue: load errors on multiple packages are different with a trailing slash #3707

Open
mvdan opened this issue Jan 29, 2025 · 0 comments
Open
Labels
cue/load Issues related to cue/load mechanics modules Issues related to CUE modules and the experimental implementation

Comments

@mvdan
Copy link
Member

mvdan commented Jan 29, 2025

exec cue vet -c ./multi
exec cue vet -c ./multi/

-- multi/multi.cue --
package multi
multi: "x"
-- multi/foo.cue --
package foo
foo: "x"
-- multi/bar.cue --
package bar
bar: "x"
-- multi/baz.cue --
package baz
baz: "x"

As of 870bfc2, I see:

> exec cue vet -c ./multi
[stderr]
found packages "bar" (bar.cue) and "baz" (baz.cue) in "$WORK/multi"
found packages "bar" (bar.cue) and "foo" (foo.cue) in "$WORK/multi"
found packages "bar" (bar.cue) and "multi" (multi.cue) in "$WORK/multi"
[exit status 1]
FAIL: repro-cmd.txtar:1: unexpected command failure
> exec cue vet -c ./multi/
[stderr]
found packages "bar" (bar.cue) and "baz" (baz.cue) in "multi"
[exit status 1]

It's not clear to me why the first prints three errors, but the second prints just one. Also odd that the path is absolute in only the first case.

@mvdan mvdan added cue/load Issues related to cue/load mechanics modules Issues related to CUE modules and the experimental implementation labels Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cue/load Issues related to cue/load mechanics modules Issues related to CUE modules and the experimental implementation
Projects
Status: Backlog
Development

No branches or pull requests

1 participant