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
If the catalog-info.yaml file is not found, the import proceeds, but (in this case at least, when there are no other files) you get an error:
catalog-importer: error: outputs (type_name = 'Custom["BackstageComponent"]'): found 0 matching entries and would delete everything but --allow-delete-all not set
In my opinion, importing a non-existent local file should be a hard error as soon as you stat it - it's almost certainly something that needs attention.
PS:
I got into this situation because I was expecting the local paths to be relative to the pipeline file, but they seem to be relative to the directory where you're invoking the binary. I leave this as a discussion point - people may have different expectations around this, and it would obviously be a breaking change.
The text was updated successfully, but these errors were encountered:
Sorry for the delay on this, we agree that referencing files that are not found should explicitly error early in the process, and now it does :)
Let us know if you have any follow up on this!
In regards to relative file paths, I do agree that it is not super explicit where the base path starts, I think we should follow Go itself in their model of the base path being where the binary is executed from. But I do encourage that discussion ^^
given a pipeline:
If the
catalog-info.yaml
file is not found, the import proceeds, but (in this case at least, when there are no other files) you get an error:In my opinion, importing a non-existent local file should be a hard error as soon as you
stat
it - it's almost certainly something that needs attention.PS:
I got into this situation because I was expecting the local paths to be relative to the pipeline file, but they seem to be relative to the directory where you're invoking the binary. I leave this as a discussion point - people may have different expectations around this, and it would obviously be a breaking change.
The text was updated successfully, but these errors were encountered: