Skip to content
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

fix: resolve parts of template strings, even if another part cannot be resolved yet. #6751

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

stefreak
Copy link
Member

@stefreak stefreak commented Jan 8, 2025

What this PR does / why we need it:

This PR fixes an issue where in certain cases we get errors like "Could not find key item" or "Could not find key inputs" since 0.13.46, where the template parser has been rewritten.

Another PR is currently in progress, #6745, which will also fix this issue by capturing contexts instead of partially resolving templates. That PR won't get ready this week anymore though.

This fix is not complete, as the implementtion before 0.13.45 was not either – in certain situations partial resolution isn't cutting it, for example a template string like ${actions.build[input.name].outputs.log}. Those cases will be solved by #6745

@stefreak stefreak requested review from thsig and vvagaytsev January 8, 2025 13:11
@stefreak stefreak marked this pull request as ready for review January 8, 2025 13:11
Copy link
Collaborator

@thsig thsig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@stefreak stefreak enabled auto-merge January 8, 2025 13:28
@stefreak stefreak added this pull request to the merge queue Jan 8, 2025
Merged via the queue into main with commit aabebbd Jan 8, 2025
40 checks passed
@stefreak stefreak deleted the workaround-partial-limitations branch January 8, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants