Git Product home page Git Product logo

Comments (6)

kusalk avatar kusalk commented on May 26, 2024 1

I published a package that replaces sha1 with sha512. Check it out. I use it as a postinstall script. Currently, it supports only npm

This is great, with a few changes I can adapt this to work with private npm registries.
edit: And here we are - yoavain/fix-lockfile-integrity#167

@yoavain worked on something similar, maybe he could chime in (and yes, we'd appreciate a PR if this is in-line with expected functionality, thank you for suggesting!)

After having a look at the above package, what I observed earlier may be a bug in the private registry implementation I am using. So perhaps not inline with expected functionality - maybe best to wait and see if there is demand for it?

from lockfile-lint.

lirantal avatar lirantal commented on May 26, 2024

@yoavain worked on something similar, maybe he could chime in (and yes, we'd appreciate a PR if this is in-line with expected functionality, thank you for suggesting!)

from lockfile-lint.

yoavain avatar yoavain commented on May 26, 2024

I published a package that replaces sha1 with sha512.
Check it out.
I use it as a postinstall script.
Currently, it supports only npm
You can try it out:

npx fix-lockfile-integrity

You can read about CLI flags and configuration here:
https://www.npmjs.com/package/fix-lockfile-integrity

from lockfile-lint.

yoavain avatar yoavain commented on May 26, 2024

I published a package that replaces sha1 with sha512. Check it out. I use it as a postinstall script. Currently, it supports only npm

This is great, with a few changes I can adapt this to work with private npm registries. edit: And here we are - yoavain/fix-lockfile-integrity#167

@yoavain worked on something similar, maybe he could chime in (and yes, we'd appreciate a PR if this is in-line with expected functionality, thank you for suggesting!)

After having a look at the above package, what I observed earlier may be a bug in the private registry implementation I am using. So perhaps not inline with expected functionality - maybe best to wait and see if there is demand for it?

Right, that's why I explicitly handle only registry.npmjs.org.
Had issues with Jfrog Artifactory which always return SHA1

from lockfile-lint.

kusalk avatar kusalk commented on May 26, 2024

Had issues with Jfrog Artifactory which always return SHA1

In my case, it looks like a very old internal/scoped packaged which Artifactory has not migrated correctly during an upgrade - so it has no sha512.

from lockfile-lint.

lirantal avatar lirantal commented on May 26, 2024

Thanks for the conversation @kusalk and @yoavain for moderating 🤗

from lockfile-lint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.