csaf-poc / csaf_distribution

Tools to download or provide CSAF (Common Security Advisory Framework) documents.
https://csaf.io
38 stars 22 forks source link

Build instructions sometimes fail #28

Closed bernhardreiter closed 2 years ago

bernhardreiter commented 2 years ago

Using the current build instructions

 cd csaf_distribution
 go build -v ./cmd/...

there are sometimes no binaries build. (Test done with go version go1.17.6 linux/amd64 and c57de75dac699afd94297a67c954a8e26ca7b7d2 (current head) )

bernhardreiter commented 2 years ago

We need to find out why it does work in some settings, but not in others.

tschmidtb51 commented 2 years ago

I had the same issue. Maybe this is silently solved with the "Makefile" we discussed?

bernhardreiter commented 2 years ago

It is independent of a Makefile. First we need to know what triggers this behavior in some installations (but not in others). Afterwards a Makefile might be part of the solution, yes. :)

Fadiabb commented 2 years ago

According to the official documentation when compiling multiple packages, build compiles the packages but discards the resulting object (serving only as a check). The flag -o is here necessary.

bernhardreiter commented 2 years ago

Yes, pull request #30 would solve this, by adding the -o flag I assume.

bernhardreiter commented 2 years ago

Solved with merged #30. The -o flag has to give a directory.