Skip to content

Commit 28e78b1

Browse files
authored
Merge pull request #31 from mtrmac/image-repo-references
Image repo references
2 parents 796bfba + 2857b60 commit 28e78b1

File tree

13 files changed

+20
-25
lines changed

13 files changed

+20
-25
lines changed

image/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ BUILD_TAGS_DARWIN_CROSS = containers_image_openpgp
1212
SEQUOIA_SONAME_DIR =
1313

1414
BUILDTAGS =
15-
BUILDFLAGS := -tags "$(BUILDTAGS)" -ldflags '-X github.com/containers/image/v5/signature/internal/sequoia.sequoiaLibraryDir='"$(SEQUOIA_SONAME_DIR)"
15+
BUILDFLAGS := -tags "$(BUILDTAGS)" -ldflags '-X go.podman.io/image/v5/signature/internal/sequoia.sequoiaLibraryDir='"$(SEQUOIA_SONAME_DIR)"
1616

1717
# Extra flags passed to go test
1818
TESTFLAGS :=
@@ -109,7 +109,7 @@ lint:
109109
.PHONY: .gitvalidation
110110
.gitvalidation:
111111
@which $(GOBIN)/git-validation > /dev/null 2>/dev/null || (echo "ERROR: git-validation not found. Consider 'make clean && make tools'" && false)
112-
git fetch -q "https://github.com/containers/image.git" "refs/heads/main"
112+
git fetch -q "https://github.com/containers/container-libs.git" "refs/heads/main"
113113
upstream="$$(git rev-parse --verify FETCH_HEAD)" ; \
114114
$(GOBIN)/git-validation -q -run DCO,short-subject,dangling-whitespace -range $$upstream..HEAD
115115

image/README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ If you want to see what the library can do, or an example of how it is called,
3939
consider starting with the [skopeo](https://github.com/containers/skopeo) tool
4040
instead.
4141

42-
To integrate this library into your project, include it as a [Go module],
43-
put it into `$GOPATH` or use your preferred vendoring tool to include a copy
44-
in your project. Ensure that the dependencies documented [in go.mod][go.mod]
45-
are also available (using those exact versions or different versions of
46-
your choosing).
42+
To integrate this library into your project, include it as a [Go module].
4743

4844
This library also depends on some C libraries. Either install them:
4945
```sh
@@ -53,15 +49,14 @@ macOS$ brew install gpgme
5349
or use the build tags described below to avoid the dependencies (e.g. using `go build -tags …`)
5450

5551
[Go module]: https://github.com/golang/go/wiki/Modules
56-
[go.mod]: https://github.com/containers/image/blob/master/go.mod
5752

5853
### Supported build tags
5954

60-
- `containers_image_docker_daemon_stub`: Don’t import the `docker-daemon:` transport in `github.com/containers/image/transports/alltransports`, to decrease the amount of required dependencies. Use a stub which reports that the transport is not supported instead.
55+
- `containers_image_docker_daemon_stub`: Don’t import the `docker-daemon:` transport in `go.podman.io/image/v5/transports/alltransports`, to decrease the amount of required dependencies. Use a stub which reports that the transport is not supported instead.
6156
- `containers_image_openpgp`: Use a Golang-only OpenPGP implementation for signature verification instead of the default cgo/gpgme-based implementation;
6257
the primary downside is that creating new signatures with the Golang-only implementation is not supported.
6358
- `containers_image_sequoia`: Use Sequoia-PGP for signature verification instead of the default cgo/gpgme-based or the Golang-only OpenPGP implementations, and enable the `signature/simplesequoia` subpackage. This requires a support shared library installed on the system. Install https://github.com/ueno/podman-sequoia , and potentially update build configuration to point at it (compare `SEQUOIA_SONAME_DIR` in `Makefile`).
64-
- `containers_image_storage_stub`: Don’t import the `containers-storage:` transport in `github.com/containers/image/transports/alltransports`, to decrease the amount of required dependencies. Use a stub which reports that the transport is not supported instead.
59+
- `containers_image_storage_stub`: Don’t import the `containers-storage:` transport in `go.podman.io/image/v5/transports/alltransports`, to decrease the amount of required dependencies. Use a stub which reports that the transport is not supported instead.
6560

6661
## [Contributing](CONTRIBUTING.md)
6762

image/docker/registries_d.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222

2323
// systemRegistriesDirPath is the path to registries.d, used for locating lookaside Docker signature storage.
2424
// You can override this at build time with
25-
// -ldflags '-X github.com/containers/image/v5/docker.systemRegistriesDirPath=$your_path'
25+
// -ldflags '-X go.podman.io/image/v5/docker.systemRegistriesDirPath=$your_path'
2626
var systemRegistriesDirPath = builtinRegistriesDirPath
2727

2828
// builtinRegistriesDirPath is the path to registries.d.

image/docker/tarfile/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Package tarfile is an internal implementation detail of some transports.
2-
// Do not use outside of the github.com/containers/image repo!
2+
// Do not use outside of the go.podman.io/image repo!
33
package tarfile

image/docs/atomic-signature-embedded-json.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"title": "JSON embedded in an atomic container signature",
3-
"description": "This schema is a supplement to atomic-signature.md in this directory.\n\nConsumers of the JSON MUST use the processing rules documented in atomic-signature.md, especially the requirements for the 'critical' subobject.\n\nWhenever this schema and atomic-signature.md, or the github.com/containers/image/signature implementation, differ,\nit is the atomic-signature.md document, or the github.com/containers/image/signature implementation, which governs.\n\nUsers are STRONGLY RECOMMENDED to use the github.com/containers/image/signature implementation instead of writing\ntheir own, ESPECIALLY when consuming signatures, so that the policy.json format can be shared by all image consumers.\n",
3+
"description": "This schema is a supplement to atomic-signature.md in this directory.\n\nConsumers of the JSON MUST use the processing rules documented in atomic-signature.md, especially the requirements for the 'critical' subobject.\n\nWhenever this schema and atomic-signature.md, or the go.podman.io/image/v5/signature implementation, differ,\nit is the atomic-signature.md document, or the go.podman.io/image/v5/signature implementation, which governs.\n\nUsers are STRONGLY RECOMMENDED to use the go.podman.io/image/v5/signature implementation instead of writing\ntheir own, ESPECIALLY when consuming signatures, so that the policy.json format can be shared by all image consumers.\n",
44
"type": "object",
55
"required": [
66
"critical",

image/docs/containers-signature.5.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ container-signature - Container signature format
77

88
# DESCRIPTION
99
This document describes the format of container signatures,
10-
as implemented by the `github.com/containers/image/signature` package.
10+
as implemented by the `go.podman.io/image/v5/signature` package.
1111

12-
Most users should be able to consume these signatures by using the `github.com/containers/image/signature` package
12+
Most users should be able to consume these signatures by using the `go.podman.io/image/v5/signature` package
1313
(preferably through the higher-level `signature.PolicyContext` interface)
1414
without having to care about the details of the format described below.
1515
This documentation exists primarily for maintainers of the package
@@ -65,7 +65,7 @@ or in any way usable for making policy decisions about the image.)
6565

6666
When verifying a cryptographic signature in the OpenPGP format,
6767
the consumer MUST verify at least the following aspects of the signature
68-
(like the `github.com/containers/image/signature` package does):
68+
(like the `go.podman.io/image/v5/signature` package does):
6969

7070
- The blob MUST be a “Signed Message” as defined RFC 4880 section 11.3.
7171
(e.g. it MUST NOT be an unsigned “Literal Message”,

image/docs/signature-protocols.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Signature access protocols
22

3-
The `github.com/containers/image` library supports signatures implemented as blobs “attached to” an image.
3+
The `go.podman.io/image/v5` library supports signatures implemented as blobs “attached to” an image.
44
Some image transports (local storage formats and remote protocols) implement these signatures natively
55
or trivially; for others, the protocol extensions described below are necessary.
66

image/hack/get_ci_vm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if [[ "$1" == "--config" ]]; then
3030
in_get_ci_vm "$1"
3131
cat <<EOF
3232
DESTDIR="/var/tmp/go/src/github.com/containers/image"
33-
UPSTREAM_REPO="https://github.com/containers/image.git"
33+
UPSTREAM_REPO="https://github.com/containers/container-libs.git"
3434
CI_ENVFILE="/etc/ci_environment"
3535
GCLOUD_PROJECT="skopeo"
3636
GCLOUD_IMGPROJECT="libpod-218412"

image/internal/tmpdir/tmpdir.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
// unixTempDirForBigFiles is the directory path to store big files on non Windows systems.
1111
// You can override this at build time with
12-
// -ldflags '-X github.com/containers/image/v5/internal/tmpdir.unixTempDirForBigFiles=$your_path'
12+
// -ldflags '-X go.podman.io/image/v5/internal/tmpdir.unixTempDirForBigFiles=$your_path'
1313
var unixTempDirForBigFiles = builtinUnixTempDirForBigFiles
1414

1515
// builtinUnixTempDirForBigFiles is the directory path to store big files.

image/pkg/sysregistriesv2/system_registries_v2.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ import (
2525
// systemRegistriesConfPath is the path to the system-wide registry
2626
// configuration file and is used to add/subtract potential registries for
2727
// obtaining images. You can override this at build time with
28-
// -ldflags '-X github.com/containers/image/v5/sysregistries.systemRegistriesConfPath=$your_path'
28+
// -ldflags '-X go.podman.io/image/v5/sysregistries.systemRegistriesConfPath=$your_path'
2929
var systemRegistriesConfPath = builtinRegistriesConfPath
3030

3131
// systemRegistriesConfDirPath is the path to the system-wide registry
3232
// configuration directory and is used to add/subtract potential registries for
3333
// obtaining images. You can override this at build time with
34-
// -ldflags '-X github.com/containers/image/v5/sysregistries.systemRegistriesConfDirectoryPath=$your_path'
34+
// -ldflags '-X go.podman.io/image/v5/sysregistries.systemRegistriesConfDirectoryPath=$your_path'
3535
var systemRegistriesConfDirPath = builtinRegistriesConfDirPath
3636

3737
// AuthenticationFileHelper is a special key for credential helpers indicating

0 commit comments

Comments
 (0)