You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: