Hi Mark,
Hau idatzi du Mark E. Fuller (fuller(a)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.
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.
You can remove the files in the %prep section for example.
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.
Look at the spec file of the already packaged version. If something is
missing you can add following the example.
Kind regards,
Mikel