Replies: 2 comments 3 replies
-
Noting my reply from Slack to bring the thread up-to-date. This is a very interesting question given some recent work we have been doing in this space. Please can you provide a bit more detail on what it is you're trying to do here? |
Beta Was this translation helpful? Give feedback.
-
The question of whether to apply tags to imports is one that we've been discussing quite a bit, with recent changes to recognise The tricky issue here is that tags live in a global namespace, so if we apply them to all imported packages, there's no guarantee that someone in an imported module isn't using a tag name quite differently. It also could lead to potential security issues, allowing external dependencies to "harvest" tag values that they really shouldn't have access to. The current behavior is the same as it's been for a while now (at least since v0.4.3): tags are injected only into packages that are explicitly mentioned on the command line. A couple of other possibilities:
|
Beta Was this translation helpful? Give feedback.
-
Asked by Milos Ostojic on Slack:
When running
load.Instances
, is there a way to pass map of tags to packages imported by main package?Beta Was this translation helpful? Give feedback.
All reactions