Giter Club home page Giter Club logo

Comments (9)

gregmagolan avatar gregmagolan commented on June 18, 2024

Thanks for the issue. I ran into this as well and we should resolve for 1.0.

from rules_js.

gregmagolan avatar gregmagolan commented on June 18, 2024

Hmm. That is unfortunate that there is no integrity SHA provided for these URLs.

+  github.com/dmarcos/document-register-element/8ccc532b7f3744be954574caf3072a5fd260ca90:
+    resolution: {tarball: https://codeload.github.com/dmarcos/document-register-element/tar.gz/8ccc532b7f3744be954574caf3072a5fd260ca90}
+    name: document-register-element
+    version: 0.5.4
+    dev: true

yarn doesn't either in its lockfile

"document-register-element@github:dmarcos/document-register-element#8ccc532b7f3744be954574caf3072a5fd260ca90":
  version "0.5.4"
  resolved "https://codeload.github.com/dmarcos/document-register-element/tar.gz/8ccc532b7f3744be954574caf3072a5fd260ca90"

Presumably this is because a consistent SHA is not guaranteed over time. Without a SHA, the downloaded archives won't go into the external repository cache but they shouldn't anyway if their SHA is not guaranteed to be consistent.

from rules_js.

vpanta avatar vpanta commented on June 18, 2024

Ah yeah, makes sense. So short term just (unfortunately) not caching it makes sense, but long term maybe it's worthwhile to add a dictionary for sha's to the npm_translate_lock call similar to patches?

I appreciate the call-out though, as I'd like to raise this with our teams as it feels like a big code-audit hole.

from rules_js.

gregmagolan avatar gregmagolan commented on June 18, 2024

Cut a release which includes the fix https://github.com/aspect-build/rules_js/releases/tag/v0.11.1

from rules_js.

gregmagolan avatar gregmagolan commented on June 18, 2024

A dictionary of SHAs sounds reasonable to fill in gaps where there is no SHA provided in the lock file.

from rules_js.

alexeagle avatar alexeagle commented on June 18, 2024

let's use 90% of our energy to push for an upstream fix, they are breaking supply chain security for everyone and it's not a bazel-specific problem...

from rules_js.

vpanta avatar vpanta commented on June 18, 2024

let's use 90% of our energy to push for an upstream fix, they are breaking supply chain security for everyone and it's not a bazel-specific problem...

100% agreed here, if anything (at all) is done on this side it should be minimal effort.

from rules_js.

vpanta avatar vpanta commented on June 18, 2024

Interesting side note: there actually is a SHA in the package-lock.json for these, it's just not getting propagated to pnpm-lock.yaml I'd guess?

"node_modules/document-register-element": {
      "version": "0.5.4",
      "resolved": "git+ssh://[email protected]/dmarcos/document-register-element.git#8ccc532b7f3744be954574caf3072a5fd260ca90",
      "integrity": "sha512-dwvGei9I/m1pYQ/9aNODyVmvSWBtlncfIROn5Sbi4MVnIcZKre5QaWx+AGLI/j6VH9sp8jwLyeuWP1micANT0g==",
      "license": "MIT"
    },

from rules_js.

alexeagle avatar alexeagle commented on June 18, 2024

Must be a pnpm bug then

from rules_js.

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.