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

Allow interchangable recipe redefinitions #2437

Merged
merged 7 commits into from
Oct 30, 2024

Conversation

casey
Copy link
Owner

@casey casey commented Oct 21, 2024

Fixes #2436.

@neunenak Does this seem reasonable to you? See the original issue, but basically, if you have the same recipe imported in multiple places in the same module, you'll get an error. This seems safe to allow, since they're exactly the same recipe. Allowing it is kind of like automatically wrapping recipes in C-style include guards.

This is a bit hacky, since it only works for recipes. The less hacky way to do it would be to just ignore an import if it's a file that's already been imported into this module, which would work for everything.

@neunenak
Copy link
Contributor

Yeah, seems sensible enough

@casey casey enabled auto-merge (squash) October 30, 2024 22:19
@casey casey merged commit 4683a63 into master Oct 30, 2024
5 checks passed
@casey casey deleted the allow-interchangable-recipe-definitions branch October 30, 2024 22:23
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.

Importing many times the same justfile.
2 participants