dimanche 19 juillet 2020

Is there a way to just build a utility package in Go without main or test file?

I have a simple utility repository that will be reused in my other projects. Now I want to check if this repo is compiling through a CI setup.

I have tried go build but it says main package not found.

Adding test files will suffice but it will only compile the specified files during the test and not the entire library.

Aucun commentaire:

Enregistrer un commentaire