microsoft / component-detection

Scans your project to determine what components you use
MIT License
438 stars 90 forks source link

GoWithReplace detector fails when replacements are relative references (missing version) #1216

Closed FernandoRojo closed 1 month ago

FernandoRojo commented 3 months ago

In the GoWithReplace detector, having a replace directive that points to an adjacent directory will error out with: System.ArgumentNullException: Property Version of component type Go is required (Parameter 'Version'),

In these cases the directory should be mapped and the replace directive should properly build the dependency tree for those references.