Skip to content

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

Description

@lexbritvin

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions