Skip to content

Importing a package in an ancestor package instance, then evaluating it in a sub folder #3629

Closed Answered by myitcv
WaywardWizard asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the question, @WaywardWizard. I think you have simply run into a bug here, which I have raised over at #3640.

A couple of thoughts/comments looking at your example:

  • Multiple CUE files can belong to the same package. This might already be clear to you, indeed the multiple packages might be a key part of reproducing the issue I raised at #3640.
  • CUE packages in a subdirectory unify with packages of the same name in ancestor directories. Your description indicates this is the behaviour your want to rely on, but just making it explicit by an example:
# export in root
exec cue export .
cmp stdout $WORK/stdout.root.golden

# cd test
cd test

# export in test
exec cue export .
cmp st…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@WaywardWizard
Comment options

Comment options

You must be logged in to vote
1 reply
@WaywardWizard
Comment options

Answer selected by WaywardWizard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants