Skip to content

Commit

Permalink
update go-yaml in nix proxy (digital-asset#18026)
Browse files Browse the repository at this point in the history
This code hasn't changed since it was first created 4 years ago. I
wasn't able to find any way to go through the generation steps again
(`go mod download` to go from `go.mod` to `go.sum`, then `vgo2nix` -
which doesn't exist anymore - to go from `go.sum` to `deps.nix`) so
instead I:

1. Deleted the `go.sum` file as it's mostly misdirection at this point.
2. Manually udpated the yaml version to the first non-vulnerable version
   so dependabot is happy, in both `go.mod` (which dependabot looks at)
   and `deps.nix` (which is the one we really use to resolve
   dependencies).
  • Loading branch information
garyverhaegen-da authored Dec 15, 2023
1 parent 542f3d3 commit df5fe42
Showing 3 changed files with 3 additions and 190 deletions.
4 changes: 2 additions & 2 deletions nix/tools/nix-store-gcs-proxy/deps.nix
Original file line number Diff line number Diff line change
@@ -779,8 +779,8 @@
fetch = {
type = "git";
url = "https://gopkg.in/yaml.v2";
rev = "v2.2.2";
sha256 = "01wj12jzsdqlnidpyjssmj0r4yavlqy7dwrg7adqd8dicjc4ncsa";
rev = "v2.2.4";
sha256 = "sha256-4mnIZoZTmJhCe8pX+ChsXTSxN1rYPWpZbhNFfsqRfIU=";
};
}
{
2 changes: 1 addition & 1 deletion nix/tools/nix-store-gcs-proxy/go.mod
Original file line number Diff line number Diff line change
@@ -7,5 +7,5 @@ require (
github.com/urfave/cli v1.20.0
github.com/urfave/negroni v1.0.0
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
gopkg.in/yaml.v2 v2.2.2 // indirect
gopkg.in/yaml.v2 v2.2.4 // indirect
)
187 changes: 0 additions & 187 deletions nix/tools/nix-store-gcs-proxy/go.sum

This file was deleted.

0 comments on commit df5fe42

Please sign in to comment.