Skip to content

fix: migrations yarn 1 install and eslint config issues#2503

Merged
jackw merged 3 commits intomainfrom
jackw/fix-migrations-install
Mar 2, 2026
Merged

fix: migrations yarn 1 install and eslint config issues#2503
jackw merged 3 commits intomainfrom
jackw/fix-migrations-install

Conversation

@jackw
Copy link
Collaborator

@jackw jackw commented Mar 2, 2026

What this PR does / why we need it:

If migrations or additions make changes to dependencies in the plugin the runner will then attempt to install the new packages. However this fails with yarn 1 due to not setting the --ignore-engines flag. This PR adds the flag so subsequent migrations can run without being interrupted.

The PR also fixes an issue where references to configs from plugins were not being written out correctly resulting in broken JS.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @grafana/create-plugin@7.0.1-canary.2503.22583707467.0
npm install @grafana/plugin-docs-cli@0.0.5-canary.2503.22583707467.0
# or 
yarn add @grafana/create-plugin@7.0.1-canary.2503.22583707467.0
yarn add @grafana/plugin-docs-cli@0.0.5-canary.2503.22583707467.0

@jackw jackw self-assigned this Mar 2, 2026
Copilot AI review requested due to automatic review settings March 2, 2026 13:05
@jackw jackw requested a review from a team as a code owner March 2, 2026 13:05
@jackw jackw added the patch Increment the patch version when merged label Mar 2, 2026
@jackw jackw requested a review from joshhunt March 2, 2026 13:05
@jackw jackw added the release Create a release when this pr is merged label Mar 2, 2026
@jackw jackw requested a review from hugohaggmark March 2, 2026 13:05
@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2026

Hello! 👋 This repository uses Auto for releasing packages using PR labels.

✨ This PR can be merged and will trigger a new patch release.
NOTE: When merging a PR with the release label please avoid merging another PR. For further information see here.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates create-plugin’s dependency installation behavior so Yarn Classic (v1) doesn’t fail migrations/updates when package engines constraints don’t match the user’s environment.

Changes:

  • Add --ignore-engines to the Yarn v1 “silent install” command used during migrations/updates.

@github-project-automation github-project-automation bot moved this from 📬 Triage to 🔬 In review in Grafana Catalog Team Mar 2, 2026
@jackw jackw changed the title fix: dont block yarn 1 installs if engines are incompatible fix: migrations yarn 1 install and eslint config issues Mar 2, 2026
@jackw jackw merged commit 93e3d4b into main Mar 2, 2026
29 checks passed
@jackw jackw deleted the jackw/fix-migrations-install branch March 2, 2026 16:14
@github-project-automation github-project-automation bot moved this from 🔬 In review to 🚀 Shipped in Grafana Catalog Team Mar 2, 2026
@grafana-plugins-platform-bot
Copy link
Contributor

🚀 PR was released in @grafana/create-plugin@7.0.1, @grafana/plugin-docs-cli@0.0.5 🚀

@grafana-plugins-platform-bot grafana-plugins-platform-bot bot added the released This issue/pull request has been released. label Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Increment the patch version when merged release Create a release when this pr is merged released This issue/pull request has been released.

Projects

Status: 🚀 Shipped

Development

Successfully merging this pull request may close these issues.

3 participants