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

Update install instructions #498

Open
jeffdgr8 opened this issue Jan 4, 2024 · 2 comments
Open

Update install instructions #498

jeffdgr8 opened this issue Jan 4, 2024 · 2 comments

Comments

@jeffdgr8
Copy link

jeffdgr8 commented Jan 4, 2024

The install instructions on the website and readme both describe using go get, which is deprecated for installing executables since Go 1.17.

go install doesn't support -u and -d options. And the resulting source location is different than described as well ($GOPATH/pkg/mod/github.com/magefile/mage@<version>).

When running either mage install or go run bootstrap.go from this source directory, I get the error:

Error: error creating generated mainfile: open mage_output_file.go: permission denied

@egor-denysenko
Copy link
Contributor

egor-denysenko commented Jan 17, 2024

I found out that installing mage with the following command:
go install github.com/magefile/mage@latest (Or pick the specific version that you want to install.)
and having the GOPATH and GOROOT properly evaluated it's working fine.
I could init a magefile config with mage-init instead of using go run bootstrap.go.
Keep in mind that i did this procedure with:
go version go version go1.21.5 linux/amd6

If it could help i can open a PR to update the docs and the readme

@egor-denysenko
Copy link
Contributor

I have created the PR in order to update the docs here

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

No branches or pull requests

2 participants