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

Refactor FlowVersionProvider & use cadence.flowCommand from Settings #518

Merged
merged 6 commits into from
Jan 31, 2024

Conversation

jribbink
Copy link
Contributor

@jribbink jribbink commented Jan 23, 2024

Closes #517

Description

Addresses some debt with a global instance being used to manage Flow CLI version resolution.

This allows us to inject the workspace Settings instance in order to introduce a bug fix for flow version not using a custom user-configured flow command.


For contributor use:

  • Targeted PR against master branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work
  • Code follows the standards mentioned here
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

@jribbink jribbink marked this pull request as ready for review January 23, 2024 22:41
@jribbink jribbink changed the title Refactor FlowVersionProvider & use flow command from Settings Refactor FlowVersionProvider & use cadence.flowCommand from Settings Jan 23, 2024
@jribbink jribbink added the improvement Technical work without new features label Jan 26, 2024
Copy link
Contributor

@nialexsan nialexsan left a comment

Choose a reason for hiding this comment

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

a few non-blocking suggestions

extension/src/flow-cli/utils.ts Outdated Show resolved Hide resolved
extension/test/integration/0 - dependencies.test.ts Outdated Show resolved Hide resolved
@jribbink jribbink merged commit 003e335 into master Jan 31, 2024
5 of 6 checks passed
@jribbink jribbink deleted the jribbink/version-fix branch January 31, 2024 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Technical work without new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extension does not respect cadence.flowCommand for determining CLI version
2 participants