gofed / go-macros

Rpm mechanics for Go packaging
4 stars 7 forks source link

[RFE] Store commit and ipprefix in the .goipath #50

Closed ingvagabund closed 6 years ago

ingvagabund commented 6 years ago

To make every devel rpm contain all information needed for automatic analysis. Currently, the commit/hexsha and the ipprefix are parsed from corresponding srpm, which introduces unintended complexity. No analysis solution should need more than is provided by the rpm.

For that, I suggest to put yaml/json structures into the .goipath. E.g.

meta:
- hexsha: 645ef00459ed84a119197bfb8d8205042c6df63d
- ipprefix: github.com/pkg/errors
- additional_options:
  ...

and have the content automatically generated by the macros.

ingvagabund commented 6 years ago

https://github.com/gofed/go-macros/commit/44a2515165e665d740aabe711f4a1987a104a987

The ipprefix can be decoded from the absolute path of the .goipath file.