Skip to content

Commit

Permalink
Rename imports to cnabio/cnab-to-oci
Browse files Browse the repository at this point in the history
Update doc.go with canonical import

Signed-off-by: Silvin Lubecki <[email protected]>
  • Loading branch information
silvin-lubecki committed Feb 13, 2020
1 parent b06f162 commit b4100ec
Show file tree
Hide file tree
Showing 22 changed files with 39 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
#### expecting it in the form of
#### /go/src/github.com/circleci/go-tool
#### /go/src/bitbucket.org/circleci/go-tool
working_directory: /go/src/github.com/docker/cnab-to-oci
working_directory: /go/src/github.com/cnabio/cnab-to-oci
steps:
- checkout
- setup_remote_docker:
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN apk add --no-cache \
# Fetch docker cli to run a registry container for e2e tests
RUN curl -Ls https://download.docker.com/linux/static/${DOCKERCLI_CHANNEL}/x86_64/docker-${DOCKERCLI_VERSION}.tgz | tar -xz

WORKDIR /go/src/github.com/docker/cnab-to-oci
WORKDIR /go/src/github.com/cnabio/cnab-to-oci
COPY . .
RUN make BUILDTIME=$BUILDTIME COMMIT=$COMMIT TAG=$TAG bin/cnab-to-oci &&\
make BUILDTIME=$BUILDTIME COMMIT=$COMMIT TAG=$TAG build-e2e-test
Expand All @@ -34,9 +34,9 @@ FROM alpine:${ALPINE_VERSION} as e2e

# copy all the elements needed for e2e tests from build image
COPY --from=build /go/docker/docker /usr/bin/docker
COPY --from=build /go/src/github.com/docker/cnab-to-oci/bin/cnab-to-oci /usr/bin/cnab-to-oci
COPY --from=build /go/src/github.com/docker/cnab-to-oci/e2e /e2e
COPY --from=build /go/src/github.com/docker/cnab-to-oci/e2e.test /e2e/e2e.test
COPY --from=build /go/src/github.com/cnabio/cnab-to-oci/bin/cnab-to-oci /usr/bin/cnab-to-oci
COPY --from=build /go/src/github.com/cnabio/cnab-to-oci/e2e /e2e
COPY --from=build /go/src/github.com/cnabio/cnab-to-oci/e2e.test /e2e/e2e.test

# Run end-to-end tests
CMD ["e2e/run.sh"]
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.DEFAULT_GOAL := all
SHELL:=/bin/bash

PKG_NAME := github.com/docker/cnab-to-oci
PKG_NAME := github.com/cnabio/cnab-to-oci

EXEC_EXT :=
ifeq ($(OS),Windows_NT)
Expand Down Expand Up @@ -71,7 +71,7 @@ test-e2e: e2e-image
docker run --rm --network=host -v /var/run/docker.sock:/var/run/docker.sock cnab-to-oci-e2e

build-e2e-test:
$(GO_TEST) -c github.com/docker/cnab-to-oci/e2e
$(GO_TEST) -c github.com/cnabio/cnab-to-oci/e2e

e2e-image:
docker build $(BUILD_ARGS) . -t cnab-to-oci-e2e
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Documentation](https://godoc.org/github.com/docker/cnab-to-oci/remotes?status.svg)](http://godoc.org/github.com/docker/cnab-to-oci/remotes)
[![Documentation](https://godoc.org/github.com/cnabio/cnab-to-oci/remotes?status.svg)](http://godoc.org/github.com/cnabio/cnab-to-oci/remotes)

# CNAB to OCI

Expand Down Expand Up @@ -420,7 +420,7 @@ project.
## Contributors

See also the list of
[contributors](https://github.com/docker/cnab-to-oci/graphs/contributors) who
[contributors](https://github.com/cnabio/cnab-to-oci/graphs/contributors) who
participated in this project.

## License
Expand Down
2 changes: 1 addition & 1 deletion cmd/cnab-to-oci/fixup.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"os"

"github.com/cnabio/cnab-go/bundle"
"github.com/cnabio/cnab-to-oci/remotes"
containerdRemotes "github.com/containerd/containerd/remotes"
"github.com/docker/cli/cli/config"
"github.com/docker/cnab-to-oci/remotes"
"github.com/docker/distribution/reference"
"github.com/docker/go/canonical/json"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion cmd/cnab-to-oci/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"io/ioutil"
"os"

"github.com/docker/cnab-to-oci/remotes"
"github.com/cnabio/cnab-to-oci/remotes"
"github.com/docker/distribution/reference"
"github.com/docker/go/canonical/json"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion cmd/cnab-to-oci/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"os"

"github.com/cnabio/cnab-go/bundle"
"github.com/docker/cnab-to-oci/remotes"
"github.com/cnabio/cnab-to-oci/remotes"
"github.com/docker/distribution/reference"
"github.com/docker/docker/client"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion cmd/cnab-to-oci/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/docker/cnab-to-oci/internal"
"github.com/cnabio/cnab-to-oci/internal"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion converter/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"sort"

"github.com/cnabio/cnab-go/bundle"
"github.com/cnabio/cnab-to-oci/relocation"
"github.com/containerd/containerd/images"
"github.com/docker/cnab-to-oci/relocation"
"github.com/docker/distribution/reference"
ocischema "github.com/opencontainers/image-spec/specs-go"
ocischemav1 "github.com/opencontainers/image-spec/specs-go/v1"
Expand Down
2 changes: 1 addition & 1 deletion converter/convert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package converter
import (
"testing"

"github.com/docker/cnab-to-oci/tests"
"github.com/cnabio/cnab-to-oci/tests"
"github.com/docker/distribution/manifest/schema2"
"github.com/docker/distribution/reference"
ocischemav1 "github.com/opencontainers/image-spec/specs-go/v1"
Expand Down
2 changes: 2 additions & 0 deletions converter/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package cnabtooci provides converters to transform CNAB to OCI format and vice versa.
package converter // import "github.com/cnabio/cnab-to-oci/converter"
9 changes: 5 additions & 4 deletions doc.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Package cnabtooci provides converters to transform CNAB to OCI format and vice versa
// Package cnabtooci provides converters to transform CNAB to OCI format and vice versa,
// and high level functions to push and pull bundles to a registry.
// In `cmd/cnab-to-oci` you can find the `main` package to create the `cnab-to-oci` binary
// see https://github.com/docker/cnab-to-oci for more information about it.
// see https://github.com/cnabio/cnab-to-oci for more information about it.
//
// It can also be used as a library. For more, please refer to http://godoc.org/github.com/docker/cnab-to-oci/remotes
package cnabtooci
// It can also be used as a library. For more, please refer to http://godoc.org/github.com/cnabio/cnab-to-oci/remotes
package cnabtooci // import "github.com/cnabio/cnab-to-oci"
2 changes: 2 additions & 0 deletions relocation/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package relocation provides types to handle relocation maps.
package relocation // import "github.com/cnabio/cnab-to-oci/relocation"
2 changes: 2 additions & 0 deletions remotes/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package remotes provides converters to transform CNAB to OCI format and vice versa.
package remotes // import "github.com/cnabio/cnab-to-oci/remotes"
2 changes: 1 addition & 1 deletion remotes/fixup.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"io/ioutil"

"github.com/cnabio/cnab-go/bundle"
"github.com/cnabio/cnab-to-oci/relocation"
"github.com/containerd/containerd/images"
"github.com/containerd/containerd/log"
"github.com/containerd/containerd/platforms"
"github.com/containerd/containerd/remotes"
"github.com/docker/cnab-to-oci/relocation"
"github.com/docker/distribution/reference"
ocischemav1 "github.com/opencontainers/image-spec/specs-go/v1"
)
Expand Down
2 changes: 1 addition & 1 deletion remotes/fixup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"testing"

"github.com/cnabio/cnab-go/bundle"
"github.com/cnabio/cnab-to-oci/relocation"
"github.com/containerd/containerd/images"
"github.com/containerd/containerd/platforms"
"github.com/docker/cnab-to-oci/relocation"
"github.com/docker/distribution/reference"
"github.com/opencontainers/go-digest"
ocischemav1 "github.com/opencontainers/image-spec/specs-go/v1"
Expand Down
4 changes: 2 additions & 2 deletions remotes/fixupoptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"io/ioutil"

"github.com/cnabio/cnab-go/bundle"
"github.com/cnabio/cnab-to-oci/internal"
"github.com/cnabio/cnab-to-oci/relocation"
"github.com/containerd/containerd/platforms"
"github.com/containerd/containerd/remotes"
"github.com/docker/cnab-to-oci/internal"
"github.com/docker/cnab-to-oci/relocation"
"github.com/docker/distribution/reference"
ocischemav1 "github.com/opencontainers/image-spec/specs-go/v1"
)
Expand Down
4 changes: 2 additions & 2 deletions remotes/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import (
"io/ioutil"

"github.com/cnabio/cnab-go/bundle"
"github.com/cnabio/cnab-to-oci/converter"
"github.com/cnabio/cnab-to-oci/relocation"
"github.com/containerd/containerd/errdefs"
"github.com/containerd/containerd/images"
"github.com/containerd/containerd/log"
"github.com/containerd/containerd/remotes"
"github.com/docker/cli/opts"
"github.com/docker/cnab-to-oci/converter"
"github.com/docker/cnab-to-oci/relocation"
"github.com/docker/distribution/reference"
"github.com/docker/distribution/registry/client/auth"
ocischemav1 "github.com/opencontainers/image-spec/specs-go/v1"
Expand Down
2 changes: 1 addition & 1 deletion remotes/pull_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
"testing"

"github.com/docker/cnab-to-oci/tests"
"github.com/cnabio/cnab-to-oci/tests"
"github.com/docker/distribution/reference"
ocischemav1 "github.com/opencontainers/image-spec/specs-go/v1"
"gotest.tools/assert"
Expand Down
6 changes: 3 additions & 3 deletions remotes/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ import (
"os"

"github.com/cnabio/cnab-go/bundle"
"github.com/cnabio/cnab-to-oci/converter"
"github.com/cnabio/cnab-to-oci/internal"
"github.com/cnabio/cnab-to-oci/relocation"
"github.com/containerd/containerd/errdefs"
"github.com/containerd/containerd/images"
"github.com/containerd/containerd/log"
"github.com/containerd/containerd/remotes"
"github.com/docker/cli/cli/config"
"github.com/docker/cli/cli/config/credentials"
configtypes "github.com/docker/cli/cli/config/types"
"github.com/docker/cnab-to-oci/converter"
"github.com/docker/cnab-to-oci/internal"
"github.com/docker/cnab-to-oci/relocation"
"github.com/docker/distribution/reference"
"github.com/docker/docker/api/types"
registrytypes "github.com/docker/docker/api/types/registry"
Expand Down
4 changes: 2 additions & 2 deletions remotes/push_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"testing"

"github.com/cnabio/cnab-go/bundle"
"github.com/docker/cnab-to-oci/converter"
"github.com/docker/cnab-to-oci/tests"
"github.com/cnabio/cnab-to-oci/converter"
"github.com/cnabio/cnab-to-oci/tests"
"github.com/docker/distribution/reference"
"github.com/docker/go/canonical/json"
ocischemav1 "github.com/opencontainers/image-spec/specs-go/v1"
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package tests
import (
"github.com/cnabio/cnab-go/bundle"
"github.com/cnabio/cnab-go/bundle/definition"
"github.com/docker/cnab-to-oci/relocation"
"github.com/cnabio/cnab-to-oci/relocation"
"github.com/docker/distribution/manifest/schema2"
ocischema "github.com/opencontainers/image-spec/specs-go"
ocischemav1 "github.com/opencontainers/image-spec/specs-go/v1"
Expand Down

0 comments on commit b4100ec

Please sign in to comment.