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

Question: how to update deps/$repo once a commit ID has been updated in .pkg? #16

Closed
Lucas-C opened this issue Jan 21, 2025 · 4 comments

Comments

@Lucas-C
Copy link
Contributor

Lucas-C commented Jan 21, 2025

No description provided.

@Lucas-C Lucas-C changed the title Question: how to update deps/$repo once a commit has been updated in .pkg? Question: how to update deps/$repo once a commit ID has been updated in .pkg? Jan 21, 2025
@felixguendling
Copy link
Member

felixguendling commented Jan 21, 2025

Updating the .pkg file and calling pkg -l should be sufficient.
The task of pkg -l is to establish the status described in the .pkg file, similar to npm install (just that npm understands semantic versioning and pkg currently only supports exact commit hashes).

btw. pkg -s lists the dependency tree.

@Lucas-C
Copy link
Contributor Author

Lucas-C commented Jan 21, 2025

Thank you!

@Lucas-C Lucas-C closed this as completed Jan 21, 2025
@felixguendling
Copy link
Member

You can use -f to force checkout the commits - warning: this will override changes you made, so be careful (it's only used in the CI currently). I would always recommend to reset the repo manually with git reset --hard or other tools if necessary.

@Lucas-C
Copy link
Contributor Author

Lucas-C commented Jan 21, 2025

I created PR #17 to document those commands 🙂

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