-
Notifications
You must be signed in to change notification settings - Fork 3
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
Git dependency is getting overwritten #5
Comments
Thank you for submitting this issue! I should have some more free time over the weekend, and will try and review it then. |
Okay, I think I am happy to add this functionality into the script, but I don't think it should be on by default. My opinion is that it should be turned on by a flag, specified as a command line argument. How does that sound to you? |
I agree with enabling the feature by flag. |
This commit also addresses Issue #5 and adds the ability to not modify packages with a resolved field.
I have added a command line interface to the program now, and you can find it on the develop branch. You should just give the -r flag for it to work. If you are happy with it works, then I we can close this issue. |
I tried it out with the |
I was using this to package super-productivity in nixpkgs NixOS/nixpkgs#334933, and found that one of the git dependencies got overwritten and could not be resolved during the npm config phase.
Since the git dependency already had
resolved
field, I patchednpm-lockfile-fix
to only check for packages without a resolved filled. I don't know if this is the correct fix, but it seems to work for me.The dependency:
"jira2md": "git+https://github.com/johannesjo/J2M.git"
The lockfile:
After using
npm-lockfile-fix
:The text was updated successfully, but these errors were encountered: