Skip to content

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
@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.

3 participants