-
Notifications
You must be signed in to change notification settings - Fork 137
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
Support a project having prerelease versions #1080
base: main
Are you sure you want to change the base?
Support a project having prerelease versions #1080
Conversation
@rwjblue I removed the test with |
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.
@NullVoxPopuli could we have test case for “ pkg.version === undefined” ?
@lifeart, iirc, I had a really hard time reproducing that in tests -- only came upon that scenario when linking to a real app |
@ef4 / @rwjblue I re-added the (but is a separate use case from my original intent: to get ember canary working at all 🙃 ) |
Seconding what @rwjblue said.
On new enough versions of fixturify-project (I don't recall if that's what we're using here), there's also an explicit |
What are remaining tasks here? |
Looks like #1091 may be related |
Gonna reslove the conversations, so we can start up new threads on the up-to-date code |
…atest version of my package that is in my monorepo that will likely be linked anyway'
b7f8ed9
to
9bca1e8
Compare
@@ -134,13 +134,45 @@ describe(`dependencySatisfies`, function () { | |||
expect(runDefault(code)).toBe(true); | |||
}); | |||
|
|||
test(`it considers a project's used pre-releases as allowed`, () => { |
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.
these tests pass without my changes to the src
directory 😱
@@ -181,3 +181,46 @@ dummyAppScenarios | |||
}); | |||
}); | |||
}); | |||
|
|||
appReleaseScenario |
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.
hoping to re-create what I'm seeing in my actual app with this scenario test
Trying to run tests locally using the javascript debug terminal. Getting:
and then in the debug console:
does that seem familiar to anyone? |
So, with ember 4.2.0 recently released, I was able to test my app with a stable version of ember, and the problem I'm trying to resolve is still present. dependencyMacros is going down the wrong path here: I think this PR (#1080) has to be put on hold until we can get whatever is going on in my app figured out with stable ember. |
|
This is the wrong version for my app but is relevant to this PR (#1080), so that's good. I changed the package in my monorepo using 4.1.0-alpha.7 to also use 4.2.0, and ran the node command again:
progress. However - this implies that every dependency in a monorepo should be the same version? is there a way around that? anywho, my app boots now. thanks! |
It is, but in this case it's buggy because it's respecting Node's node_modules convention, which is the real root of the problem. You'd have the same problem with anything that doesn't replace node_modules. pnpm and yarn 3 are both ways to do that. But I doubt either works with embroider out of the box because |
This is what was going on with #1066
Demonstration of
semver
behavior here: https://runkit.com/nullvoxpopuli/semverReproduction of behavior: NullVoxPopuli/limber#375
(This PR is the last thing between me and finally merging that NullVoxPopuli/limber#375 🙃 )
tldr:
satisfies
does not return true if the version is a pre-release. the pre-release option tosatisfies
is only for therange
parameterI've also been wondering if there is a better way to share code between the glimmer and babel versions of
dependencySatisfies
-- though, I don't know why the glimmer version exists, because I thought it was all build-time transforms anyway?