Open mguirao opened 6 months ago
Hi
This is an edge case that hasn't come up yet The problem here is in manifest.json which aspire outputs, if you have three projects like that, you're gonna have three entries in the manifest each with different resource names
Its this set of keys (resource names) which is used as the composite key for the image name, and the manifest completely drives aspir8.
You might be better handling this differently based on what you are actually doing, running vs publishing.
I understand, but since the manifest shows that all the projects are using the same dotnet project (.csproj), this is why I expected the build of this project (and the image generation) to happen only once.
Maybe the composite key for the image should rely more on the 'path', which is more relevant for the building phase.
🔥 Bug Description
A project is instantiated multiple times but with different environmental variables. When running
aspirate build
, I can see the projectWorkerProject
being built 3 times, with 3 images generated in the registry.🔍 Steps to Reproduce the Bug
🧯 Possible Solution