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

sriov-cni build is not idempotent #263

Open
jiriproX opened this issue May 17, 2023 · 6 comments
Open

sriov-cni build is not idempotent #263

jiriproX opened this issue May 17, 2023 · 6 comments

Comments

@jiriproX
Copy link
Contributor

When you run make second time then it fails:
make
Running gofmt...
Running golangci-lint...
make: *** No rule to make target '.gopath/pkg/mod/github.com/blizzy78/varnamelen@v0.8.0/testdata/src/falsenegativechanrecv/chanrecv', needed by '/opt/cek/sriov-cni/build/sriov'. Stop.

What did you expect to happen?

It should pass

What are the minimal steps needed to reproduce the bug?

Run make and then run make again.

Anything else we need to know?

Issue is already fixed on upstream component blizzy78/varnamelen#26

Component Versions

Component Version
SR-IOV CNI Plugin v2.7.0/master
@zeeke
Copy link
Member

zeeke commented May 18, 2023

The problems comes from a dependency that has a file with a whitespace

We can fix this by bumping the dependency, but I think it would be cleaner to simplify the build rule by removing the $(GOFILES) dependency from the rule.

@jiriproX
Copy link
Contributor Author

jiriproX commented May 18, 2023

I know, I've proposed fix there. It is merged but they do not have official version tag with this fix yet. Yes, if that dependency is not needed any longer for sriov-cni then the removal will be better. When this fix will be ready? When can we expect new version with recent fixes?

@jiriproX
Copy link
Contributor Author

jiriproX commented Jun 8, 2023

@SchSeba @zeeke When is planned new version release? I would need fix for this issue in it.

@zeeke
Copy link
Member

zeeke commented Jun 15, 2023

I think this will not be an easy fix, as github.com/blizzy78/varnamelen v0.8.0 dependency is used by golangci-lint, which sticks to v0.8.0.
We need to refactor the build mechanism a bit. You can raise this at the next Community Meeting to discuss this in details.

@jiriproX
Copy link
Contributor Author

Can you please fix this issue by removing that dependency as proposed above? We are still waiting for the fix.

@jiriproX
Copy link
Contributor Author

@zeeke Can you plase take this issue and resolve it?

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

2 participants