Repository navigation
Why doesn't --source-map support prefix matching?
#7208
lm-william-shipman
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The documentation for
--source-mapis a bit confusing. It seems to suggest it can do prefix or regex matching, but as near as I can tell it does not. It requires an explicit mapping. my use case is that we have bunch of modules in separate repos, all under the same project, and I don't really like having to build dozens of--source-mapargs (or a longTG_SOURCE_MAPenv var) when working locally. It would be preferable if I could just do something like--source-map git::ssh://git@my.scm.com/catalog=/path/to/local/catalogand have everything after that match as usual. It seems like it should be doable - I see a couple of places where terragrunt is just accessing the map directly by the url, and that could be replaced with a small helper to handle the prefix matching I think? I did some light searching through the issues in this repo but I'm not coming up with anything terribly recent. Thanks for your patience!All reactions