Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename import package to reflect future org change to cnabio #42

Merged
merged 3 commits into from Feb 13, 2020

Conversation

radu-matei
Copy link
Member

This PR is preparing the moving of this repo into github.com/cnabio, the official GitHub organization for CNAB projects.

This PR:

  • updates the MIT license to "The CNAB Authors"
  • slightly updates the readme to reflect it is a reference implementation of the CNAB security spec
  • updates the Go package import paths from github.com/engineerd/signy to github.com/cnabio/signy.

@radu-matei
Copy link
Member Author

CI is failing because the import path for the package does not match the directory structure in GOPATH (and the project does not use modules yet).

However, cloning in the correct directory works:

make bootstrap build test lint
dep check
go build  -tags 'osusergo' -ldflags '-w -s' -o /Users/radu/projects/src/github.com/cnabio/signy/bin/signy github.com/cnabio/signy/cmd/...
go test  ./...
?   	github.com/cnabio/signy/cmd	[no test files]
?   	github.com/cnabio/signy/pkg/cnab	[no test files]
ok  	github.com/cnabio/signy/pkg/docker	5.332s
ok  	github.com/cnabio/signy/pkg/intoto	(cached)
?   	github.com/cnabio/signy/pkg/trust	[no test files]
?   	github.com/cnabio/signy/pkg/tuf	[no test files]
golangci-lint run --config ./golangci.yml

Do we want to first move the repo under the new organization, then merge this PR?

@radu-matei
Copy link
Member Author

This needs a rebase on top of #47.

Copy link

@silvin-lubecki silvin-lubecki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Radu M <root@radu.sh>
@radu-matei
Copy link
Member Author

Rebased on top #47.

mkdir -p $GOPATH/src/github.com/$GITHUB_REPOSITORY
mv $(pwd)/* $GOPATH/src/github.com/$GITHUB_REPOSITORY
cd $GOPATH/src/github.com/$GITHUB_REPOSITORY
export GOPATH=$HOME/go && export GOBIN=$(go env GOPATH)/bin && export PATH=$PATH:$GOPATH&& export PATH=$PATH:$GOBIN && mkdir -p $GOBIN
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At some point we might want to tweak the Makefile to not need a GOPATH anymore, I'll open a separate issue about it.

@@ -75,7 +75,7 @@ INFO[0001] The software product passed all verification.
cmd.Flags().StringVarP(&verify.localFile, "local", "", "", "Local file to validate the SHA256 against (mandatory for thick bundles)")

cmd.Flags().BoolVarP(&verify.intoto, "in-toto", "", false, "If passed, will try to fetch in-toto metadata from TUF and perform the verification")
cmd.Flags().StringVarP(&verify.verificationImage, "image", "", "docker.pkg.github.com/engineerd/in-toto-container/verification:v1", "container image to run the in-toto verification")
cmd.Flags().StringVarP(&verify.verificationImage, "image", "", "docker.pkg.github.com/cnabio/in-toto-container/verification:v1", "container image to run the in-toto verification")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also means we must push the verification image to cnabio.

@radu-matei radu-matei merged commit 21e031d into cnabio:master Feb 13, 2020
@radu-matei radu-matei deleted the move-cnabio branch February 13, 2020 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants