You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This behavior is not desirable since one might want to specify a SourceRoot that covers a specified directory with the goal to make all paths from such directory deterministic, but other SourceRoots might be available for subdirectories that add Source Link information. By ignoring the subdirectories and normalizing the the containing directory root the Source Link information is lost.
For example, NuGet targets set a SourceRoot for the entire package cache root to make sure source packages do not break deterministic build even when these packages don't define their own SourceRoot. Source packages built with with Source Link enabled do however add their SourceRoot entry (with Source Link metadata). This entry is however overridden in path map due to the above behavior.
Currently the mappings are applied in the order they are specified, regardless of whether one prefix is more specific than other.
Thus a mapping specified earlier in the list overrides more specific mapping specified later in the list.
This behavior is not desirable since one might want to specify a SourceRoot that covers a specified directory with the goal to make all paths from such directory deterministic, but other SourceRoots might be available for subdirectories that add Source Link information. By ignoring the subdirectories and normalizing the the containing directory root the Source Link information is lost.
For example, NuGet targets set a SourceRoot for the entire package cache root to make sure source packages do not break deterministic build even when these packages don't define their own SourceRoot. Source packages built with with Source Link enabled do however add their SourceRoot entry (with Source Link metadata). This entry is however overridden in path map due to the above behavior.
Version Used:
3.8.0-1.20360.1 (ec2c0bc)
Steps to Reproduce:
mdv a.pdb
Expected Behavior:
Actual Behavior:
The text was updated successfully, but these errors were encountered: