Skip to content

Commit a7a47b2

Browse files
author
Stef Graces
committed
Revert "Replace go mod name"
This reverts commit ce0f49e.
1 parent 54b5cf7 commit a7a47b2

File tree

30 files changed

+179
-179
lines changed

30 files changed

+179
-179
lines changed

.goreleaser.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ builds:
1717
ldflags:
1818
- -s
1919
- -w
20-
- -X github.com/stgrace/go-containerregistry/cmd/crane/cmd.Version={{.Version}}
21-
- -X github.com/stgrace/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}
20+
- -X github.com/google/go-containerregistry/cmd/crane/cmd.Version={{.Version}}
21+
- -X github.com/google/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}
2222
goarch:
2323
- amd64
2424
- arm
@@ -44,8 +44,8 @@ builds:
4444
ldflags:
4545
- -s
4646
- -w
47-
- -X github.com/stgrace/go-containerregistry/cmd/crane/cmd.Version={{.Version}}
48-
- -X github.com/stgrace/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}
47+
- -X github.com/google/go-containerregistry/cmd/crane/cmd.Version={{.Version}}
48+
- -X github.com/google/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}
4949
goarch:
5050
- amd64
5151
- arm
@@ -72,8 +72,8 @@ builds:
7272
ldflags:
7373
- -s
7474
- -w
75-
- -X github.com/stgrace/go-containerregistry/cmd/crane/cmd.Version={{.Version}}
76-
- -X github.com/stgrace/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}
75+
- -X github.com/google/go-containerregistry/cmd/crane/cmd.Version={{.Version}}
76+
- -X github.com/google/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}
7777
goarch:
7878
- amd64
7979
- arm

README.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# go-containerregistry
22

3-
[![GitHub Actions Build Status](https://github.com/stgrace/go-containerregistry/workflows/Build/badge.svg)](https://github.com/stgrace/go-containerregistry/actions?query=workflow%3ABuild)
4-
[![GoDoc](https://godoc.org/github.com/stgrace/go-containerregistry?status.svg)](https://godoc.org/github.com/stgrace/go-containerregistry)
3+
[![GitHub Actions Build Status](https://github.com/google/go-containerregistry/workflows/Build/badge.svg)](https://github.com/google/go-containerregistry/actions?query=workflow%3ABuild)
4+
[![GoDoc](https://godoc.org/github.com/google/go-containerregistry?status.svg)](https://godoc.org/github.com/google/go-containerregistry)
55
[![Code Coverage](https://codecov.io/gh/google/go-containerregistry/branch/main/graph/badge.svg)](https://codecov.io/gh/google/go-containerregistry)
66

77
## Introduction
@@ -15,9 +15,9 @@ The following diagram shows the main types that this library handles.
1515
## Philosophy
1616

1717
The overarching design philosophy of this library is to define interfaces that present an immutable
18-
view of resources (e.g. [`Image`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1#Image),
19-
[`Layer`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1#Layer),
20-
[`ImageIndex`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1#ImageIndex)),
18+
view of resources (e.g. [`Image`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1#Image),
19+
[`Layer`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1#Layer),
20+
[`ImageIndex`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1#ImageIndex)),
2121
which can be backed by a variety of medium (e.g. [registry](./pkg/v1/remote/README.md),
2222
[tarball](./pkg/v1/tarball/README.md), [daemon](./pkg/v1/daemon/README.md), ...).
2323

@@ -43,45 +43,45 @@ Over time, we will add new functionality under experimental environment variable
4343

4444
#### Sources
4545

46-
* [`remote.Image`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1/remote#Image)
47-
* [`tarball.Image`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1/tarball#Image)
48-
* [`daemon.Image`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1/daemon#Image)
49-
* [`layout.Image`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1/layout#Path.Image)
50-
* [`random.Image`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1/random#Image)
46+
* [`remote.Image`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1/remote#Image)
47+
* [`tarball.Image`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1/tarball#Image)
48+
* [`daemon.Image`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1/daemon#Image)
49+
* [`layout.Image`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1/layout#Path.Image)
50+
* [`random.Image`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1/random#Image)
5151

5252
#### Sinks
5353

54-
* [`remote.Write`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1/remote#Write)
55-
* [`tarball.Write`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1/tarball#Write)
56-
* [`daemon.Write`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1/daemon#Write)
57-
* [`legacy/tarball.Write`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/legacy/tarball#Write)
58-
* [`layout.AppendImage`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1/layout#Path.AppendImage)
54+
* [`remote.Write`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1/remote#Write)
55+
* [`tarball.Write`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1/tarball#Write)
56+
* [`daemon.Write`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1/daemon#Write)
57+
* [`legacy/tarball.Write`](https://godoc.org/github.com/google/go-containerregistry/pkg/legacy/tarball#Write)
58+
* [`layout.AppendImage`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1/layout#Path.AppendImage)
5959

6060
### `v1.ImageIndex`
6161

6262
#### Sources
6363

64-
* [`remote.Index`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1/remote#Index)
65-
* [`random.Index`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1/random#Index)
66-
* [`layout.ImageIndexFromPath`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1/layout#ImageIndexFromPath)
64+
* [`remote.Index`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1/remote#Index)
65+
* [`random.Index`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1/random#Index)
66+
* [`layout.ImageIndexFromPath`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1/layout#ImageIndexFromPath)
6767

6868
#### Sinks
6969

70-
* [`remote.WriteIndex`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1/remote#WriteIndex)
71-
* [`layout.Write`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1/layout#Write)
70+
* [`remote.WriteIndex`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1/remote#WriteIndex)
71+
* [`layout.Write`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1/layout#Write)
7272

7373
### `v1.Layer`
7474

7575
#### Sources
7676

77-
* [`remote.Layer`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1/remote#Layer)
78-
* [`tarball.LayerFromFile`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1/tarball#LayerFromFile)
79-
* [`random.Layer`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1/random#Layer)
80-
* [`stream.Layer`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1/stream#Layer)
77+
* [`remote.Layer`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1/remote#Layer)
78+
* [`tarball.LayerFromFile`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1/tarball#LayerFromFile)
79+
* [`random.Layer`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1/random#Layer)
80+
* [`stream.Layer`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1/stream#Layer)
8181

8282
#### Sinks
8383

84-
* [`remote.WriteLayer`](https://godoc.org/github.com/stgrace/go-containerregistry/pkg/v1/remote#WriteLayer)
84+
* [`remote.WriteLayer`](https://godoc.org/github.com/google/go-containerregistry/pkg/v1/remote#WriteLayer)
8585

8686
## Overview
8787

cloudbuild.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ steps:
1010
1111
export GOROOT=/usr/local/go
1212
export KO_DOCKER_REPO="gcr.io/$PROJECT_ID"
13-
export GOFLAGS="-ldflags=-X=github.com/stgrace/go-containerregistry/cmd/crane/cmd.Version=$COMMIT_SHA"
13+
export GOFLAGS="-ldflags=-X=github.com/google/go-containerregistry/cmd/crane/cmd.Version=$COMMIT_SHA"
1414
1515
# Put contents of /workspace on GOPATH.
16-
shadow=$$GOPATH/src/github.com/stgrace/go-containerregistry
16+
shadow=$$GOPATH/src/github.com/google/go-containerregistry
1717
link_dir=$$(dirname "$$shadow")
1818
mkdir -p $$link_dir
1919
ln -s $$PWD $$shadow || stat $$shadow
@@ -25,28 +25,28 @@ steps:
2525
alias ko=$${PWD}/ko
2626
2727
# Use the ko binary to build the crane-ish builder images.
28-
ko build --platform=all -B github.com/stgrace/go-containerregistry/cmd/crane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
29-
ko build --platform=all -B github.com/stgrace/go-containerregistry/cmd/gcrane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
28+
ko build --platform=all -B github.com/google/go-containerregistry/cmd/crane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
29+
ko build --platform=all -B github.com/google/go-containerregistry/cmd/gcrane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
3030
# ./cmd/krane is a separate module, so switch directories.
3131
cd ./cmd/krane
32-
ko build --platform=all -B github.com/stgrace/go-containerregistry/cmd/krane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
32+
ko build --platform=all -B github.com/google/go-containerregistry/cmd/krane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
3333
cd ../../
3434
3535
# Use the ko binary to build the crane-ish builder *debug* images.
3636
export KO_CONFIG_PATH=$(pwd)/.ko/debug/
37-
ko build --platform=all -B github.com/stgrace/go-containerregistry/cmd/crane -t "debug"
38-
ko build --platform=all -B github.com/stgrace/go-containerregistry/cmd/gcrane -t "debug"
37+
ko build --platform=all -B github.com/google/go-containerregistry/cmd/crane -t "debug"
38+
ko build --platform=all -B github.com/google/go-containerregistry/cmd/gcrane -t "debug"
3939
# ./cmd/krane is a separate module, so switch directories.
4040
cd ./cmd/krane
41-
ko build --platform=all -B github.com/stgrace/go-containerregistry/cmd/krane -t "debug"
41+
ko build --platform=all -B github.com/google/go-containerregistry/cmd/krane -t "debug"
4242
cd ../../
4343
4444
# Tag-specific debug images are pushed to gcr.io/go-containerregistry/TOOL/debug:...
45-
KO_DOCKER_REPO=gcr.io/$PROJECT_ID/crane/debug ko build --platform=all --bare github.com/stgrace/go-containerregistry/cmd/crane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
46-
KO_DOCKER_REPO=gcr.io/$PROJECT_ID/gcrane/debug ko build --platform=all --bare github.com/stgrace/go-containerregistry/cmd/gcrane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
45+
KO_DOCKER_REPO=gcr.io/$PROJECT_ID/crane/debug ko build --platform=all --bare github.com/google/go-containerregistry/cmd/crane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
46+
KO_DOCKER_REPO=gcr.io/$PROJECT_ID/gcrane/debug ko build --platform=all --bare github.com/google/go-containerregistry/cmd/gcrane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
4747
# ./cmd/krane is a separate module, so switch directories.
4848
cd ./cmd/krane
49-
KO_DOCKER_REPO=gcr.io/$PROJECT_ID/krane/debug ko build --platform=all --bare github.com/stgrace/go-containerregistry/cmd/krane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
49+
KO_DOCKER_REPO=gcr.io/$PROJECT_ID/krane/debug ko build --platform=all --bare github.com/google/go-containerregistry/cmd/krane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
5050
cd ../../
5151
5252
# Use the crane builder to get the digest for crane-ish.

cmd/crane/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ A collection of useful things you can do with `crane` is [here](recipes.md).
1111

1212
### Install from Releases
1313

14-
1. Get the [latest release](https://github.com/stgrace/go-containerregistry/releases/latest) version.
14+
1. Get the [latest release](https://github.com/google/go-containerregistry/releases/latest) version.
1515

1616
```sh
1717
$ VERSION=$(curl -s "https://api.github.com/repos/google/go-containerregistry/releases/latest" | jq -r '.tag_name')
@@ -28,7 +28,7 @@ A collection of useful things you can do with `crane` is [here](recipes.md).
2828
```sh
2929
$ OS=Linux # or Darwin, Windows
3030
$ ARCH=x86_64 # or arm64, x86_64, armv6, i386, s390x
31-
$ curl -sL "https://github.com/stgrace/go-containerregistry/releases/download/${VERSION}/go-containerregistry_${OS}_${ARCH}.tar.gz" > go-containerregistry.tar.gz
31+
$ curl -sL "https://github.com/google/go-containerregistry/releases/download/${VERSION}/go-containerregistry_${OS}_${ARCH}.tar.gz" > go-containerregistry.tar.gz
3232
```
3333

3434
1. Verify the signature. We generate [SLSA 3 provenance](https://slsa.dev) using
@@ -37,9 +37,9 @@ A collection of useful things you can do with `crane` is [here](recipes.md).
3737
and verify as follows:
3838

3939
```sh
40-
$ curl -sL https://github.com/stgrace/go-containerregistry/releases/download/${VERSION}/multiple.intoto.jsonl > provenance.intoto.jsonl
40+
$ curl -sL https://github.com/google/go-containerregistry/releases/download/${VERSION}/multiple.intoto.jsonl > provenance.intoto.jsonl
4141
$ # NOTE: You may be using a different architecture.
42-
$ slsa-verifier-linux-amd64 verify-artifact go-containerregistry.tar.gz --provenance-path provenance.intoto.jsonl --source-uri github.com/stgrace/go-containerregistry --source-tag "${VERSION}"
42+
$ slsa-verifier-linux-amd64 verify-artifact go-containerregistry.tar.gz --provenance-path provenance.intoto.jsonl --source-uri github.com/google/go-containerregistry --source-tag "${VERSION}"
4343
PASSED: Verified SLSA provenance
4444
```
4545

@@ -54,7 +54,7 @@ A collection of useful things you can do with `crane` is [here](recipes.md).
5454
Install manually:
5555

5656
```sh
57-
go install github.com/stgrace/go-containerregistry/cmd/crane@latest
57+
go install github.com/google/go-containerregistry/cmd/crane@latest
5858
```
5959

6060
### Install via brew

cmd/gcrane/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ so this may break in the future.
1111

1212
## Installation
1313

14-
Download [latest release](https://github.com/stgrace/go-containerregistry/releases/latest).
14+
Download [latest release](https://github.com/google/go-containerregistry/releases/latest).
1515

1616
Install manually:
1717

1818
```
19-
go install github.com/stgrace/go-containerregistry/cmd/gcrane@latest
19+
go install github.com/google/go-containerregistry/cmd/gcrane@latest
2020
```
2121

2222
## Commands

cmd/krane/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
module github.com/stgrace/go-containerregistry/cmd/krane
1+
module github.com/google/go-containerregistry/cmd/krane
22

33
go 1.23.0
44

5-
replace github.com/stgrace/go-containerregistry => ../../
5+
replace github.com/google/go-containerregistry => ../../
66

77
require (
88
github.com/awslabs/amazon-ecr-credential-helper/ecr-login v0.0.0-20250115170608-608f37feb051
99
github.com/chrismellard/docker-credential-acr-env v0.0.0-20230304212654-82a0ddb27589
10-
github.com/stgrace/go-containerregistry v0.20.2
10+
github.com/google/go-containerregistry v0.20.2
1111
)
1212

1313
require (

hack/update-codegen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ set -o pipefail
2020

2121
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
2222
BOILER_PLATE_FILE="${PROJECT_ROOT}/hack/boilerplate/boilerplate.go.txt"
23-
MODULE_NAME=github.com/stgrace/go-containerregistry
23+
MODULE_NAME=github.com/google/go-containerregistry
2424

2525
pushd ${PROJECT_ROOT}
2626
trap popd EXIT

0 commit comments

Comments
 (0)