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

fix: syntax error in go build command #1171

Merged
merged 1 commit into from
May 14, 2024

Conversation

kaanyagci
Copy link
Contributor

@kaanyagci kaanyagci commented May 6, 2024

Building the Docker image with Dockerfile with docker build . was failing with the following error message:

 => ERROR [4/4] RUN go build -tags example -o /build/gocv_version -i ./cmd/version/                                                                                                                                                                                                                                                                                  0.3s
------
 > [4/4] RUN go build -tags example -o /build/gocv_version -i ./cmd/version/:
0.308 flag provided but not defined: -i
0.308 usage: go build [-o output] [build flags] [packages]
0.308 Run 'go help build' for details.
------
Dockerfile:10
--------------------
   8 |
   9 |     WORKDIR /go/src/gocv.io/x/gocv
  10 | >>> RUN go build -tags example -o /build/gocv_version -i ./cmd/version/
  11 |
  12 |     CMD ["/build/gocv_version"]
--------------------
ERROR: failed to solve: process "/bin/sh -c go build -tags example -o /build/gocv_version -i ./cmd/version/" did not complete successfully: exit code: 2

Removed the -i flag from go build as it's not defined

Signed-off-by: Kaan Yagci <kaan.yagci@makepad.fr>
@deadprogram deadprogram changed the base branch from release to dev May 14, 2024 08:57
@deadprogram
Copy link
Member

I'm not sure what I meant by that flag @kaanyagci but thank you for the fix!

I changed the branch for this PR to dev as mentioned here https://github.com/hybridgroup/gocv/blob/release/CONTRIBUTING.md#how-to-use-our-github-repository

Now merging, thanks again.

@deadprogram deadprogram merged commit 2889527 into hybridgroup:dev May 14, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants