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

Adding vendoring via dep, and updated README.md #1

Merged
merged 3 commits into from
Aug 24, 2017
Merged

Conversation

solcates
Copy link
Contributor

This PR adds dep vendoring and an updated README.md to go with it

README.md Outdated
git clone [email protected]:ThalesIgnite/crypto11.git github.com/ThalesIgnite/crypto11
cd github.com/ThalesIgnite/crypto11
go get github.com/ThalesIgnite/crypto11
cd $GOPATH/sr/github.com/ThalesIgnite/crypto11
Copy link
Contributor

@optnfast optnfast Aug 23, 2017

Choose a reason for hiding this comment

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

Typo: sr should be src.

Gopkg.toml Outdated

[[constraint]]
branch = "master"
name = "github.com/thalesignite/crypto11"
Copy link
Contributor

Choose a reason for hiding this comment

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

The last constraint here seems a strange - it is declaring a dependency on ourselves.
Is there a reason for that or was a result of dep init making a bad guess?

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it!

dep init doesn't want to write a Gopkg.toml that lists the repo itself. But it seems that it does a case-insensitive comparison. So if you clone github.com/ThalesIgnite/crypto11, it doesn't notice that the demo's import github.com/thalesignite/crypto11 is actually the same thing.

Per https://blog.golang.org/package-names Go package names are lower case, so I think the answer is we need to stop with the camelcase in ThalesIgnite. I'll adjust the README.md accordingly, and fix up the .toml files.

Richard Kettlewell added 2 commits August 24, 2017 16:09
@optnfast optnfast merged commit bfaf6ca into master Aug 24, 2017
@optnfast optnfast deleted the add_vendoring branch August 24, 2017 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants