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

Argo Workflows CLI not building #4

Open
AllardKrings opened this issue Jul 4, 2024 · 1 comment
Open

Argo Workflows CLI not building #4

AllardKrings opened this issue Jul 4, 2024 · 1 comment

Comments

@AllardKrings
Copy link

Hi again,

I have installed Argo Workflows and tested it, it works fine! Great work!

However, when I follow the instructions to build the Argo Workflow CLI i get the following error:

from the root of the cloned git-repo I run:

make dist/argo-linux-riscv64

which gives output:

GIT_COMMIT=6abe8a9503dcde3de7057922c6d7688c68ae4957 GIT_BRANCH=master GIT_TAG=untagged GIT_TREE_STATE=dirty RELEASE_TAG=false DEV_BRANCH=true VERSION=latest
KUBECTX=default DOCKER_DESKTOP=false K3D=false DOCKER_PUSH=false
RUN_MODE=local PROFILE=minimal AUTH_MODE=hybrid SECURE=false STATIC_FILES=false ALWAYS_OFFLOAD_NODE_STATUS=false UPPERIO_DB_DEBUG=0 LOG_LEVEL=debug NAMESPACED=true
CGO_ENABLED=0 go build -v -gcflags '' -ldflags '-X github.com/argoproj/argo-workflows/v3.version=latest -X github.com/argoproj/argo-workflows/v3.buildDate=2024-07-04T06:23:59Z -X github.com/argoproj/argo-workflows/v3.gitCommit=6abe8a9503dcde3de7057922c6d7688c68ae4957 -X github.com/argoproj/argo-workflows/v3.gitTreeState=dirty -X github.com/argoproj/argo-workflows/v3.gitTag=untagged -extldflags -static' -o dist/argo-linux-riscv64 ./cmd/argo
cmd/argo/main.go:10:2: cannot find package "github.com/argoproj/argo-workflows/v3/cmd/argo/commands" in any of:
/usr/lib/go-1.22/src/github.com/argoproj/argo-workflows/v3/cmd/argo/commands (from $GOROOT)
/home/ubuntu/go/src/github.com/argoproj/argo-workflows/v3/cmd/argo/commands (from $GOPATH)
cmd/argo/main.go:8:2: cannot find package "k8s.io/client-go/plugin/pkg/client/auth" in any of:
/usr/lib/go-1.22/src/k8s.io/client-go/plugin/pkg/client/auth (from $GOROOT)
/home/ubuntu/go/src/k8s.io/client-go/plugin/pkg/client/auth (from $GOPATH)
make: *** [Makefile:202: dist/argo-linux-riscv64] Error 1

Can you please give me suggestions on what I am doing wrong?

Kind regards

Allard

@AllardKrings
Copy link
Author

Never mind, my fault

setting GO111MODULE=on solved the issue.

Issue may be closed.

Kind regards

Allard

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