k8snetworkplumbingwg / sriov-cni

DPDK & SR-IOV CNI plugin
Apache License 2.0
294 stars 145 forks source link

sriov-cni build is not idempotent #263

Open jiriproX opened 1 year ago

jiriproX commented 1 year ago

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 https://github.com/blizzy78/varnamelen/pull/26

Component Versions

Component Version
SR-IOV CNI Plugin v2.7.0/master
zeeke commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

zeeke commented 1 year ago

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 commented 9 months ago

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

jiriproX commented 7 months ago

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