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

add hints for go mod users in documentation #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MohitKS5
Copy link

With more and more organisations using go mod if would be helpful to give a hint about what can go wrong.
I had to look at source code to figure out whats going wrong with the steps. Fortunately, it was (unexpectedly) small that allowed to quickly understand the process.

@kepeket
Copy link

kepeket commented Aug 9, 2023

You saved me, I've been looking relentlessly for a solution for this

@@ -16,6 +16,8 @@ Initialize BindataFS for your project, set the path you want to store BindataFS
$ bindatafs config/bindatafs
```

Note that the program searches for templates in the `$GOPATH + src/github.com/qor/bindatafs/templates`. As a result, if using *gomodules* initialization will throw 404 errors. The recommended solution is to switch off go modules before running above commands and then switch it back on later.
Copy link

Choose a reason for hiding this comment

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

This should also be added for the go get command, because by default go get fallback to pkg/mod to store results of go get

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

Successfully merging this pull request may close these issues.

2 participants