Skip to content

Conversation

ofalvai
Copy link
Collaborator

@ofalvai ofalvai commented Aug 1, 2025

Checklist

Version

Requires a MAJOR/MINOR/PATCH version update

Context

#1106

Changes

Move over the remaining install and activate functions. I also added a new test that verifies the feature end-to-end using a test bitrise.yml

Activating the tool installs is slightly different as envman's data structure is really cursed. I created a convert function and made sure to add test coverage.

Investigation details

Decisions

@@ -288,6 +280,14 @@ func (r WorkflowRunner) runWorkflows(tracker analytics.Tracker) (models.BuildRun

environments = append(environments, targetWorkflow.Environments...)

// Toolprovider entrypoint
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I moved the entrypoint after workflow-scoped env vars are appended to environments so that the env vars exposed by toolprovider have higher priority. I think this is the right behavior (but I'm not 100% sure). Even if the workflow defines ASDF_RUBY_VERSION=something, the versions declared in the tools block should keep working. The tools block is optional, so this won't be a breaking change.

@ofalvai ofalvai force-pushed the BE-1743-toolprovider-install-activate branch from 6c32276 to e48f0cd Compare August 6, 2025 09:11
@ofalvai ofalvai merged commit e0eea72 into master Aug 6, 2025
8 checks passed
@ofalvai ofalvai deleted the BE-1743-toolprovider-install-activate branch August 6, 2025 12:27
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