-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check step fails when previous version doesn't exist anymore #8
Comments
I could probably add an option to explicitly only expect one version. Would that work? |
I checked the documentation real quick and it says (see https://concourse.ci/implementing-resources.html):
Note the emphasized part: I would interpret this as such that the correct behavior would be to return a list of versions in any case. The requested version should only be part of the list when it is still valid, so it not being valid anymore seems to be a well-defined case. Consequently, I don't think making this a special case (and option to only expect a single version, for example) would be the right way to go. |
Any news on this? |
Should be fixed now: #9, sorry for the delay. |
I use this resource to download files from an external FTP server of a business partner, so we do not control the content/versions ourselves. They typically only leave the latest version of the file on the server and delete any previous ones.
Due to this, the FTP resources fails with an error like this:
I'm no Python expert, but I assume the issue is because the current version is not in the hash anymore and hence the look-up fails.
In such a case, would it be possible to just return the latest version? Or does that go against the contract for the
check
script?The text was updated successfully, but these errors were encountered: