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

Use a deterministic target path for feature dir mounts with useBuildContexts #247

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

aaronlehmann
Copy link
Collaborator

This avoids caching issues when using the Dockerfile produced in useBuildContexts mode. See
#205 (comment) for context.

Copy link
Member

@kylecarbs kylecarbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we join it with the MagicDir instead? That way we don't create two root-level ones.

…ontexts

This avoids caching issues when using the Dockerfile produced in
useBuildContexts mode. See
coder#205 (comment) for
context.
@aaronlehmann
Copy link
Collaborator Author

Works for me! I've changed the prefix to /.envbuilder/features. I went ahead and hardcoded this because this package won't be able to import the root envbuilder package, but let me know if you prefer to pass in MagicDir instead.

@kylecarbs
Copy link
Member

I think duplicating it is fine!

@kylecarbs
Copy link
Member

@aaronlehmann feel free to merge whenever!

@aaronlehmann
Copy link
Collaborator Author

Thanks!

@aaronlehmann aaronlehmann merged commit 7b22c45 into coder:main Jun 24, 2024
4 checks passed
@aaronlehmann aaronlehmann deleted the deterministic-path branch June 24, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants