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

Incorrect Circular dependency #2301

Closed
Spatenheinz opened this issue Aug 5, 2024 · 1 comment
Closed

Incorrect Circular dependency #2301

Spatenheinz opened this issue Aug 5, 2024 · 1 comment

Comments

@Spatenheinz
Copy link
Contributor

Consider:

#Justfile
mod a
mod b

# a.just
import 'lib.just'

a: _precompile
  @echo "a"
  
# b.just
import 'lib.just'

b: _precompile
  @echo "b"

# lib.just

_precompile:
    @echo "Preparing"

In this example we have the following tree of dependencies:

            Justfile
         /             \
      a.just        b.just
     /                    \
  lib.just             lib.just

This is however incorrectly tagged as a circular dependency:

$ just --unstable a::a
error: Import `<path>/lib.just` in `<path>/a.just` is circular
@casey
Copy link
Owner

casey commented Aug 5, 2024

I wasn't able to reproduce this, and I think this was fixed in #2065. Can you try updating just to version 1.27 or later?

@casey casey closed this as completed Aug 5, 2024
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

No branches or pull requests

2 participants