Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Move to deislabs/cnab-go #704

Merged
merged 2 commits into from
Apr 11, 2019
Merged

Conversation

silvin-lubecki
Copy link
Contributor

Vendor and use github.com/deislabs/cnab-go library, which extracted pkg/bundle.

Signed-off-by: Silvin Lubecki silvin.lubecki@docker.com

@silvin-lubecki
Copy link
Contributor Author

@radu-matei I don't have access to the duffle-CI logs, so I don't know what is failling...

@radu-matei
Copy link
Member

radu-matei commented Apr 11, 2019

@silvin-lubecki -- I was planning this as part of #681, but I don't really see any reason not to have this as a separate PR.

I rescheduled the build, here's why it fails:

golangci-lint run --config ./golangci.yml
cmd/duffle/build.go:21: File is not `goimports`-ed (goimports)
	"github.com/deislabs/cnab-go/bundle"
cmd/duffle/credential_generate.go:16: File is not `goimports`-ed (goimports)
	"github.com/deislabs/cnab-go/bundle"
cmd/duffle/install.go:13: File is not `goimports`-ed (goimports)
	"github.com/deislabs/cnab-go/bundle"
Makefile:74: recipe for target 'lint' failed
make: *** [lint] Error 1
##[error]Bash exited with code '2'.

Thanks!

…kg/bundle.

Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
@silvin-lubecki
Copy link
Contributor Author

Just rebased and fixed the imports, thank you @radu-matei 👍

@ghost ghost assigned radu-matei Apr 11, 2019
@ghost ghost added the review label Apr 11, 2019
@radu-matei
Copy link
Member

GitHub seems to be having some troubles today, both CIs are currently pending:

&{Response:0xc000114000 NextPage:0 PrevPage:0 FirstPage:0 LastPage:0 Rate:github.Rate{Limit:6100, Remaining:6059, Reset:github.Timestamp{2019-04-11 17:25:49 +0000 UTC}}}Error: POST https://api.github.com/repos/deislabs/duffle/check-runs: 500  [] (got )

@radu-matei
Copy link
Member

radu-matei commented Apr 11, 2019

Any particular reason why deislabs/cnab-go is not in Gopkg.toml?

@silvin-lubecki
Copy link
Contributor Author

Well, the gopkg.lock already pin-points the deislabs/cnab-go package, so I guess it won't change unless someone does an explicit update on it, or if the resolver needs bump it because of a transitive dependency.

I think the less you have in the Gopkg.toml the better, and you should only pin-point hard requirements. In an ideal world you even should have nothing in this file, as dep automatically resolves all the dependencies and transitive ones.

That said, I may be wrong and would be happy to add it to the Gopkg.toml file 👍

Copy link
Member

@radu-matei radu-matei left a comment

Choose a reason for hiding this comment

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

LGTM.
Thanks a lot for your contribution, I'll go ahead and rebase #681 on top of this work.

@radu-matei radu-matei merged commit 1847f2f into cnabio:master Apr 11, 2019
@ghost ghost removed the review label Apr 11, 2019
@radu-matei radu-matei mentioned this pull request Apr 15, 2019
@silvin-lubecki silvin-lubecki deleted the move-to-cnab-go branch June 7, 2019 12:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants