Skip to content

Commit

Permalink
Fix missing default-policy.json in skopeo
Browse files Browse the repository at this point in the history
We started having issues with `pkgs.dockerTools.pullImage`, were it
would fail with:

```
FATA[0000] Error loading trust policy: open /etc/containers/policy.json: no such file or directory
```

It turns out that since `skopeo` was bumped to `0.1.40`, it was
accidentally no longer being built with a default policy.

This may happen again, see containers/skopeo#787
  • Loading branch information
jcpetruzza committed Mar 10, 2020
1 parent 6dab1b5 commit 2c44a4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/tools/skopeo/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ buildGoPackage {

buildFlagsArray = ''
-ldflags=
-X github.com/containers/skopeo/vendor/github.com/containers/image/signature.systemDefaultPolicyPath=${defaultPolicyFile}
-X github.com/containers/skopeo/vendor/github.com/containers/image/internal/tmpdir.unixTempDirForBigFiles=/tmp
-X github.com/containers/skopeo/vendor/github.com/containers/image/v5/signature.systemDefaultPolicyPath=${defaultPolicyFile}
-X github.com/containers/skopeo/vendor/github.com/containers/image/v5/internal/tmpdir.unixTempDirForBigFiles=/tmp
'';

preBuild = ''
Expand Down

0 comments on commit 2c44a4f

Please sign in to comment.