-
Notifications
You must be signed in to change notification settings - Fork 206
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
update resource version to take a map string->string #24
Conversation
Signed-off-by: Ashish Sehra <[email protected]>
@kdvolder can you have a second look at this? Looks fine and good for merging from my side. |
Looks good. I can accept this PR and I'll probably add a test case too. |
The fix is available in snapshot vscode extension now. From here: http://dist.springsource.com/snapshot/STS4/nightly-distributions.html |
Quick follow up question for @srbry ... in case you know the anser :-) I accepted the PR as is and just added a simple test case. However upon reading the docs, I'm not entirely sure whether declaring this as just a Map<String,String> is totally correct. The docs do seem to say that, but they also mention that the default value is 'latest'. This suggests that 'latest' is actually a valid value as well and that's not actually a Map. (I suppose you wouldn't typically set it to 'latest' explicitly since that isn't necessary). Still I wonder whether something like this:
Should be acceptable to the editor (as it is now, with the fix, that will show an error on |
@kdvolder you are absolutely correct, I guess its less common to specify latest but you could also specify |
Okay, so I'll take another look at this. We should be able to make it so values 'latest' and 'every' are accepted. Allthough... the docs don't mention 'every' so maybe someone should also try and get the docs fixed if that is correct. Or is that a purposely undocumented feature which is likely to go away in a future release? |
Actually... doc in other place is more clear about the https://concourse.ci/get-step.html But there it is less clear about the fact that version as a map is supposed to be a |
@kdvolder that is the same bit of documentation I found, I am yet to see a resource that versions outside of Map<String,String> so I think thats a great starting point |
@kdvolder are you sure the latest nightly release included the change? I just installed it and I still get validation errors of: |
Well since you ask, one is never 100% sure of anything :-) But I did verify the fix from a snapshot before closing the ticket, so it should be there. Double checking ... |
Just double-checked and it does seem to work fine. To be sure we are using the same thing... I've tried it with the .vsix file snapshot from here: http://dist.springsource.com/snapshot/STS4/nightly-distributions.html If that is also what you are using and it doesn't work for you then maybe try this:
|
@kdvolder sorry, complete PICNIC, I somehow had 3 versions installed so had to uninstall them all to get the correct behaviour but this is all working exactly as expected. Thank you for your patience and quick responses :) |
Versions tags on resources should be a map not a "version" as defined elsewhere within a pipeline.
Reference:
Example: