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

Cannot load V1 gorm anymore since "default" branch is empty #3356

Closed
nekodojo opened this issue Sep 2, 2020 · 3 comments
Closed

Cannot load V1 gorm anymore since "default" branch is empty #3356

nekodojo opened this issue Sep 2, 2020 · 3 comments
Assignees
Labels

Comments

@nekodojo
Copy link

nekodojo commented Sep 2, 2020

Today I was trying to execute this to download a dependency we need.
go get github.com/jinzhu/gorm
It looks like "master" is no longer the default branch and "v2" branch is empty except a readme, so I get an error that there are no Go files in that package directory.

Sadly Go has no way to simply get a different tag
go get github.com/jinzhu/gorm@master # doesn't work

Here is my painful workaround
mkdir -p ~/go/src/github.com/jinzhu/
(cd ~/go/src/github.com/jinzhu/ && rm -rf gorm && git clone --branch master https://github.com/jinzhu/gorm.git)
go build github.com/jinzhu/gorm
go install github.com/jinzhu/gorm

I understand that all the focus is on V2 but for those of us who have to use V1 can you set the default branch to something non-empty? The name doesn't matter, you can make it "v1" as long as it's set as default.

Thanks

@github-actions github-actions bot added the type:missing reproduction steps missing reproduction steps label Sep 2, 2020
@github-actions
Copy link

github-actions bot commented Sep 2, 2020

This issue has been automatically marked as stale as it missing playground pull request link, checkout https://github.com/go-gorm/playground for details, it will be closed in 2 days if no further activity occurs.

@jinzhu
Copy link
Member

jinzhu commented Sep 2, 2020

Changed the default branch to master

@jinzhu jinzhu closed this as completed Sep 2, 2020
@nekodojo
Copy link
Author

nekodojo commented Sep 2, 2020

Verified working. Thanks for the quick response (and thanks for keeping up the package)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants