#13 golist should permit specifying its output format
Closed 4 years ago by qulogic. Opened 5 years ago by nim.

golist only implements a single output format, which means this output needs to be reprocessed in shell before being fed to other software, like rpm¹.

This shell reprocessing is brittle and adds noise to Go package build logs.

Mature utilities allow specifying an output format template, which simplifies their integration with other software. This can be done:

  • either by defining a custom format string using predefined variables (as done by the time -fcommand),
  • or by specifying a specific package dep format built-in (as done by the fcquery --format '%{=pkgkit}' command, that allowed direct integration within rpm in 2009).

golist should implement something similar.

¹ Typically to add golang() around dependencies, would need more processing if it ever evolves to list version constrains


Do you need format string for file lists (or just the provided/installed)?

Metadata Update from @qulogic:
- Issue assigned to qulogic

5 years ago

Do you need format string for file lists (or just the provided/installed)?

There's no need to format file lists, as long as the installation is left to something else.

If golist was to take over installation (as is done by modist install) it would need to output directories with %dir in rpm mode.

Metadata Update from @qulogic:
- Issue set to the milestone: 1.0.0

5 years ago

Metadata Update from @qulogic:
- Issue set to the milestone: 0.5.0 (was: 1.0.0)

4 years ago

I'm going to say this is done well enough for now by #23.

Metadata Update from @qulogic:
- Issue status updated to: Closed (was: Open)

4 years ago

Metadata Update from @qulogic:
- Issue set to the milestone: 0.10.0 (was: 0.5.0)

4 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #23 Merged 4 years ago