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

Bug: mage build seems to ignore replace directive #463

Open
simar7 opened this issue Apr 26, 2023 · 0 comments
Open

Bug: mage build seems to ignore replace directive #463

simar7 opened this issue Apr 26, 2023 · 0 comments
Labels

Comments

@simar7
Copy link

simar7 commented Apr 26, 2023

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 --version
Mage Build Tool 1.14.0
Build Date: 2022-09-16T14:33:53Z
Commit: 300bbc8
built with: go1.19.1
  • OS: macOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant