-
Notifications
You must be signed in to change notification settings - Fork 604
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
[rush] links are not created if the package.json dependency version is an NPM release tag #1977
Comments
|
Hm... true. I just checked and if using The problem I'm solving is that I need to reference to the latest accesible version and still have all the Rush features. |
If using There is no option in Rush to replace |
No, I don't need a publish feature from Rush. There is some legacy CI system built in company that is responsible for sparse checkout and calling My goal is to simplify a life for our team when working locally with the project in mono repository. So, our workflow:
Nothing that is required to bump versions or handle their versions. Although, we want to have a latest version, because the CI system always publishes a new versions and we don't want to spend every few hours updating them at our package.json. |
@apostolisms Rush should probably report an error to clearly communicate that Or, if Either of these solutions would probably be a pretty quick PR for someone to turn around. |
AFAIK, So, when developers write Just a warning that |
Oh right. Rush should support that. |
This is probably a bug with the rushstack/apps/rush-lib/src/logic/InstallManager.ts Lines 256 to 268 in 4318009
We proposed to improve this logic in issue #547 . The same topic also came up with @D4N14L 's PR #1938 for supporting PNPM workspaces, where he introduced the If someone has time to think through the details, I feel like a small fix would probably connect the dots and close both #547 and #1977. |
I just ran a check on So, if you have a package A with a version "1.0.0" and package B that references the package A with "latest", semver responds with const semver = require("semver")
console.log(semver.satisfies('latest', '1.0.0')); // false |
Is this a feature or a bug?
Please describe the actual behavior.
When running
rush install
orrush update --full --purge
, rush does not create symlinks to the local projects, if those projects are referenced as "latest" version.If the issue is a bug, how can we reproduce it? Please provide detailed steps and include a GitHub branch if applicable. Your issue will get resolved faster if you can make it easy to investigate.
An example of such package.json:
When installing through
rush install
it does create the following package.json in rush folder:I believe this is not an expected output and should be only the one that is referenced to
@rush-temp
.What is the expected behavior?
It should create a symlink, not the install the latest version.
If this is a bug, please provide the tool version, Node.js version, and OS.
The text was updated successfully, but these errors were encountered: