magefile / mage

a Make/rake-like dev tool using Go
https://magefile.org
Apache License 2.0
4.12k stars 251 forks source link

Bug: `mage build` seems to ignore `replace` directive #463

Open simar7 opened 1 year ago

simar7 commented 1 year ago

Bug Description Mage builds don't seem to account for replace directives at all times.

What did you do? mage build with a go.mod file that has replace directive inside.

replace github.com/foo/bar => github.com/bar/baz

What did you expect to happen?

Each mage build should produce a new binary artifact each time.

What actually happened?

Replace directives were ignored. This was verified by running a simple go build command.

Environment

$ mage --version
Mage Build Tool 1.14.0
Build Date: 2022-09-16T14:33:53Z
Commit: 300bbc8
built with: go1.19.1