RoadieHQ / backstage-entity-validator

Validate properties and well known annotations in your Backstage catalog-info.yaml files.
https://roadie.io
66 stars 14 forks source link

No such file or directory error during CI build #35

Closed awanlin closed 2 years ago

awanlin commented 2 years ago

Version:

Version 0.3.8

What happened:

We are trying to use the entity validator in an Azure DevOps build and are hitting this error:

/usr/bin/env: 'node\r': No such file or directory

The call we are making is: validate-entity 'catalog/**/*.yaml' -q

We store all our catalog entities as subfolders under catalog. This works fine on a local machine but fails as soon as it runs in the CI.

Expected behavior:

It should validate the entities without error.

Additional Information:

I'm honestly just looking for some advice as to what we might be doing wrong. Thanks for making this tool!

roadie-bot commented 2 years ago

https://app.shortcut.com/larder/story/6208

awanlin commented 2 years ago

@kissmikijr thanks for working on this, much appreciated! Looking at the linked PR it seems that it might not be an issue on our side? If that's the case when would you have a new version published?

kissmikijr commented 2 years ago

@awanlin Yes, it was on our side, I just published a new version of this package @roadiehq/backstage-entity-validator@0.3.9 If you update to this one it should be able to run without this issue on CI also.

kissmikijr commented 2 years ago

I accidentally closed it, sorry!:) If you could check and get back to this that it got solved I'd appreciate it!

awanlin commented 2 years ago

Just tested version 0.3.9 and that resolved the errors, this is awesome! Thanks again for working on this so quickly! I ❤️ Roadie

kissmikijr commented 2 years ago

Awesome, I'll close this issue.

We ❤️ our users!