Hi all,
I'm fairly new to go and am looking to make a spec file and build jsonnet (https://github.com/google/go-jsonnet/, https://jsonnet.org/).
The go2rpm utility has proven very helpful, but there appear to be two irregularities with building this package that I don't know offhand how to address (including from reading https://docs.fedoraproject.org/en-US/packaging-guidelines/Golang/).
1) What is the preferred way to ignore (or remove) unnecessary BUILD.bazel files? There is one in cmd/ which is obviously not a buildable command, and so this results in an error in the naive use case.
2) How should nested folders in cmd/ be built? Here, again, the basic template throws an error since cmd/internal contains no *.go files, only a BUILD.bezel file and a nested cmd directory.
Thank you all, fuller
Hi Mark,
Hau idatzi du Mark E. Fuller (fuller@fedoraproject.org) erabiltzaileak (2022 eka. 3, or. (17:52)):
Hi all,
I'm fairly new to go and am looking to make a spec file and build jsonnet (https://github.com/google/go-jsonnet/, https://jsonnet.org/).
go-jsonnet is already packaged:
https://src.fedoraproject.org/rpms/golang-github-google-jsonnet/
If you want to update or extend it, feel free to open a pull request.
- What is the preferred way to ignore (or remove) unnecessary
BUILD.bazel files? There is one in cmd/ which is obviously not a buildable command, and so this results in an error in the naive use case.
You can remove the files in the %prep section for example.
- How should nested folders in cmd/ be built? Here, again, the basic
template throws an error since cmd/internal contains no *.go files, only a BUILD.bezel file and a nested cmd directory.
Look at the spec file of the already packaged version. If something is missing you can add following the example.
Kind regards, Mikel
golang@lists.fedoraproject.org