Open yhekma opened 2 years ago
Hey! Thanks for thinking about how to improve tf-module-versions 👍
I'm not sure whether there really is a well-defined "source name" other than the source URL - it would really be the "source basename" (in the sense of unix basename
) - and we do have the full source URL included in the markdown-wide and structured output formats.
I'm fine with adding a name, but only if we can reliably define it consistently for any module source (consider also host.com/org/repo.git
vs host.com/org/repo
, or hashicorp/consul
, or ../modules/abc/.
). This isn't clear to me yet.
Hey, thanks for the feedback. Those are good points, I should have at least checked against the examples. I think this feature makes no sense with local modules but I think now it works as you would expect.
wrt the full name, I thought it would be useful to have the basename in the default output since the full url can get messy/long (but I do agree the information is there in the wide output, so if you don't agree this has added value, I could live with that :))
Added the name of the module to the tabled output. Example output: