-
Notifications
You must be signed in to change notification settings - Fork 34
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
RFC: Do not modify config files if version is outdated #1604
base: main
Are you sure you want to change the base?
Conversation
I noticed some recent commits where config file changes were going back and forth. However, after writing this I'm not sure that it is actually worth it, given e.g. a Prettier change between versions would similarly cause such churn if local dependencies are outdated. Thoughts?
🦋 Changeset detectedLatest commit: 40fb67d The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
it('should report ok if local skuba version is out of date, and output nothing', async () => { | ||
getDestinationManifest.mockResolvedValue({ | ||
packageJson: { | ||
skuba: { | ||
version: '2147483647.0.0', | ||
}, | ||
}, | ||
} as any); | ||
|
||
setupDestinationFiles({}); | ||
|
||
await expect(refreshConfigFiles('format', log)).resolves.toEqual({ | ||
ok: true, | ||
fixable: false, | ||
}); | ||
|
||
expect(stdout()).toBe(''); | ||
|
||
expect(writeFile).not.toHaveBeenCalled(); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we throw up a big warning telling the user to pnpm install
as having out of date local packages can cause other issues...
Thx for the QoL fix! It's definitely not ideal if skuba formats in CI but gets overwritten by the dev again |
Wonder if global skuba should delegate to local skuba if it can find it 🤔 Edit: or is this a problem of not having installed deps? |
Scenario
Repeat |
I actually think it could warrant a log 🤷 |
I noticed some recent commits where config file changes were going back and forth. However, after writing this I'm not sure that it is actually worth it, given e.g. a Prettier change between versions would similarly cause such churn if local dependencies are outdated. Thoughts?