Skip to content

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

@dmolesUC

Description

@dmolesUC

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/mage@v1.8.0/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions