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

Installation instructions don't work if run within a Go 1.11 module project directory #229

Open
dmolesUC opened this issue Feb 8, 2019 · 2 comments

Comments

@dmolesUC
Copy link

dmolesUC commented Feb 8, 2019

Steps to reproduce:

Expected:

  • mage is installed

Actual:

  • cd fails with:

    -bash: cd: /Users/david/Projects/Go/src/github.com/magefile/mage: No such file or directory
    
  • running find $GOPATH -type d -name mage shows only:

    /Users/david/Projects/Go/pkg/mod/cache/download/github.com/magefile/mage
    /Users/david/Projects/Go/pkg/mod/github.com/magefile/[email protected]/mage
    

Workaround:

  • change to a directory outside the project, e.g. $HOME, and rerun the installation instructions from there

Proposed change:

  • better installation instructions for users whose first exposure to mage is in the context of trying to build someone else's magefile-ized module project.
@natefinch
Copy link
Member

Oops, yeah, the instructions were updated for modules in the README on github, but not on the website. Thanks for pointing this out.

Try this:

git clone https://github.com/magefile/mage
cd mage
go run bootstrap.go

natefinch pushed a commit that referenced this issue Feb 25, 2020
@enumag
Copy link

enumag commented Jun 15, 2023

Using git clone seems bad to me. Wouldn't it be better to have mage installable by go install?

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

3 participants