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

lightning-flow-scanner fails for salesforce flavor due to sf cli reporting update availablee #3761

Closed
kmelessanakis opened this issue Jul 11, 2024 · 3 comments · Fixed by #3883
Labels
bug Something isn't working O: stale 🤖 This issue or pull request is stale, it will be closed if there is no activity

Comments

@kmelessanakis
Copy link

lightning-flow-scanner fails due to the sf CLI outputting a new version being available and therefore the following regex failing

Unable to extract version with regex re.compile('(?<=lightning-flow-scanner )\\d+(\\.\\d+)+') from  ›   Warning: @salesforce/cli update available from 2.48.6 to 2.49.7.

To reproduce just use the SF flavor of megalinter on a salesforce repo

@kmelessanakis kmelessanakis added the bug Something isn't working label Jul 11, 2024
@nvuillam
Copy link
Member

@kmelessanakis I get the issue

Until we fix it, please can you add the following lines in your .mega-linter.yml ? it should be a working workaround

SALESFORCE_LIGHTNING_FLOW_SCANNER_PRE_COMMANDS:
  - command: echo y|sf plugins install lightning-flow-scanner@latest
    cwd: "workspace"

Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity.
It will be closed in 14 days if no further activity occurs.
Thank you for your contributions.

If you think this issue should stay open, please remove the O: stale 🤖 label or comment on the issue.

@github-actions github-actions bot added the O: stale 🤖 This issue or pull request is stale, it will be closed if there is no activity label Aug 17, 2024
nvuillam added a commit that referenced this issue Aug 18, 2024
Fixes #3761
Co-authored-by: Melessanakis Konstantinos <[email protected]>
nvuillam added a commit that referenced this issue Aug 18, 2024
Fixes #3761
Co-authored-by: Melessanakis Konstantinos <[email protected]>
@nvuillam
Copy link
Member

@kmelessanakis solved in beta and soon released in v8 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working O: stale 🤖 This issue or pull request is stale, it will be closed if there is no activity
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants