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

Build a binary with --replace doesn't work #87

Open
lexbritvin opened this issue Feb 24, 2025 · 0 comments
Open

Build a binary with --replace doesn't work #87

lexbritvin opened this issue Feb 24, 2025 · 0 comments

Comments

@lexbritvin
Copy link
Collaborator

When using --replace flag an error is produced

launchr build --no-cache -t 500s --tag nethttpomithttp2 -vvv \
-p github.com/launchrctl/launchr@latest \
-p github.com/launchrctl/compose@latest \
-p github.com/launchrctl/keyring@latest \
-p github.com/launchrctl/web@multistep-2 \
--replace "github.com/launchrctl/web=/my/path"
-n launchr -o launchr-web --build-version v0.0.0

Result:

 INFO  Generating the go files
 INFO  Running plugin generation
gen.go:11:2: module github.com/launchrctl/web provides package github.com/launchrctl/web and is replaced but not required; to add it:
	go get github.com/launchrctl/web
  ERROR   exit status 1
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

1 participant