-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
fix: Remove adapter if core22 is set as base on snapcraft #7378
Conversation
🦋 Changeset detectedLatest commit: d467eac The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 packages
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 |
✅ Deploy Preview for car-park-attendant-cleat-11576 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
@@ -71,6 +71,10 @@ export default class SnapTarget extends Target { | |||
} | |||
if (options.base != null) { | |||
snap.base = options.base | |||
// from core22 onwards adapter is legacy | |||
if (snap.base === "core22") { | |||
delete appDescriptor.adapter |
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.
Do we need to future-proof this for core22+? This feels too hardcoded to me. Perhaps we can extract the number from core__
and compare >= 22
, what are your thoughts?
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.
Agreed. We can change it to something like Number(snap.base.split("core")[1]) >= 22
instead?
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.
That sounds perfect.
Closes #7372
cc @mmaietta