Skip to content

Mage cannot show full help for imported targets #249

@nlowe

Description

@nlowe

Targets imported from other packages with // mage:import show up in -l but when you try to view full documentation for them with -h mage complains that the target is unknown:

✔ nathan-xps15:~/projects/spot [feat/magefile L|●6✚ 9 …2]> mage -l
Targets:
  build:all                   builds all supported build configurations
  build:linux64               builds spot with GOOS=linux and GOARCH=amd64
  build:windows64             builds spot with GOOS=windows and GOARCH=amd64
  docker                      builds a docker container image
  prepare:fetchAllBranches    ensures that we have local copies of branches gitversion needs to figure out the version number
  prepare:installCITools      installs tools needed for CI.
  prepare:makeDistDir         ensures that ./dist exists
  test*                       executes tests for the project, including coverage and race conditions
  travis:calculateVersion     invokes gitversion to determine the version to tag the docker container
  travis:reportCoverage       uploads the test coverage results to coveralls

* default target
✔ nathan-xps15:~/projects/spot [feat/magefile L|●6✚ 9 …2]> mage -h test
Unknown target: "test"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions