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

Bug related to dependencies #3342

Open
janmasrovira opened this issue Feb 26, 2025 · 0 comments
Open

Bug related to dependencies #3342

janmasrovira opened this issue Feb 26, 2025 · 0 comments

Comments

@janmasrovira
Copy link
Collaborator

Steps to reproduce (might not be minimal):

mkdir A B C
cd A
juvix init
cd ../B
juvix init
# replace Package.juvix with contents below
cd ../C
mkdir T
cd T
juvix init
# replace Package.juvix with contents below
juvix dependencies update
juvix typecheck

> /home/jan/projects/bug/B/Package.juvix:1:1: error:
The dependency ../A is declared in the package's juvix.yaml but is not declared in the lockfile: /home/jan/projects/bug/C/T/juvix.lock.yaml
Try running the following command:
juvix dependencies update

1- B/Package.juvix:

module Package;

import PackageDescription.V2 open;

package : Package :=
  defaultPackage@{
    name := "b";
    dependencies := [path "../A"];
  };

2- C/T/Package.juvix:

module Package;

import PackageDescription.V2 open;

package : Package :=
  defaultPackage@{
    name := "t";
    dependencies := [path "../../A"; path "../../B"];
  };
@janmasrovira janmasrovira changed the title Bug related to path dependencies Bug related to dependencies Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant