kefd
(Gabriel G.)
November 1, 2021, 6:29am
1
How to import a module from github repository in another branch
i wanna use a module from github, this module is in another branch
im trying to use fyne to create user interfaces in go and i get this error in go run
go run main.go
Fyne error: window creation error
Cause: VersionUnavailable: GLX: Failed to create context: GLXBadFBConfig
At: /home/kefd/go/pkg/mod/fyne.io/fyne/v2@v2.1.1/internal/driver/glfw/driver.go:121
i see that if i use the branch develop this problem with opengl is solved, how i can use ?
fyne-io:develop
← fyne-io:downgrage_opengl
opened 11:24PM - 14 Mar 19 UTC
We didn't use any 3.x specific features so let's improve compatibility
Fixes … #148
1 Like
Hi @kefd .
You can manually check out that branch via go get
:
go get fyne.io/fyne/v2@develop
(See also Mapping branches and commits to versions in the module spec.)
go.mod
then contains a require directive with a generated pseudo-version that maps to the latest commit, e.g.:
require fyne.io/fyne/v2 v2.1.2-0.20211031193424-ac6dfb40fa87 // indirect
3 Likes
Dowd589
(Dowd)
November 26, 2021, 12:02pm
3
Thanks for sharing this info this is useful keep it up.
Bishop154
(Bishop)
December 28, 2021, 5:52pm
4
You’ll actually want to keep them out of git, because they tend to be huge (a lot of small files that will make your work with git heavier/slower). The package.json and package-lock.json should be enough for these dependencies to be easily downloaded again.
You can use https//gitignore.io to create a .gitignore file based on the technologies and dev tools you use. If you add “npm” to the list, it will add node_modules to the excluded files.
system
(system)
Closed
March 28, 2022, 5:53pm
5
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.