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

internal/mod/modpkgload: symbolic links do not count as package files #3298

Closed
rogpeppe opened this issue Jul 17, 2024 · 0 comments
Closed
Labels
modules Issues related to CUE modules and the experimental implementation NeedsFix

Comments

@rogpeppe
Copy link
Member

rogpeppe commented Jul 17, 2024

What version of CUE are you using (cue version)?

$ cue version
v0.9.4

Does this issue reproduce with the latest stable release?

Yes (v0.9.4)

What did you do?

[!unix] skip
exec cp x/x.cue_actual x/x.cue
exec cue export
cmp stdout want-stdout

rm x/x.cue
exec ln -s x.cue_actual ./x/x.cue
exec cue export .

-- want-stdout --
{
    "message": "Hallo, Welt!"
}
-- cue.mod/module.cue --
module: "example.com"

language: version: "v0.9.0"
-- main.cue --
package main

import "example.com/x"
x
-- x/x.cue_actual --
package x

message: "Hallo, Welt!"

What did you expect to see?

A passing test

What did you see instead?

> [!unix] skip
> exec cp x/x.cue_actual x/x.cue
> exec cue export
[stdout]
{
    "message": "Hallo, Welt!"
}
> cmp stdout want-stdout
> rm x/x.cue
> exec ln -s x.cue_actual ./x/x.cue
> exec cue export .
[stderr]
example.com@v0: import failed: cannot find package "example.com/x": cannot find module providing package example.com/x:
    ./main.cue:3:8
[exit status 1]
FAIL: /tmp/z.txtar:8: unexpected command failure
@rogpeppe rogpeppe added NeedsInvestigation Triage Requires triage/attention labels Jul 17, 2024
@myitcv myitcv added the modules Issues related to CUE modules and the experimental implementation label Jul 17, 2024
@rogpeppe rogpeppe added NeedsFix and removed NeedsInvestigation Triage Requires triage/attention labels Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
modules Issues related to CUE modules and the experimental implementation NeedsFix
Projects
Archived in project
Status: v0.10.0-alpha.2
Development

No branches or pull requests

2 participants