Skip to content
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

FUTURE: support deno install <alias>@npm:<package> #24156

Merged
merged 5 commits into from
Jun 10, 2024

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Jun 9, 2024

Closes #23144

@dsherret dsherret marked this pull request as ready for review June 10, 2024 15:40
Comment on lines +546 to +552
assert_eq!(
AddPackageReq::parse("@alias/pkg@jsr:foo").unwrap(),
AddPackageReq {
alias: "@alias/pkg".to_string(),
value: AddPackageReqValue::Jsr(PackageReq::from_str("foo").unwrap())
}
);
Copy link
Member

Choose a reason for hiding this comment

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

What about alias@jsr:foo@^1.5.0? Is it handled here? If not can you add a test that expects it to fail?

Copy link
Member Author

Choose a reason for hiding this comment

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

That will succeed and then fail on download. I added a test for it succeeding.

Copy link
Member

Choose a reason for hiding this comment

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

Why will it fail on download?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because it's not a scoped package.

@dsherret dsherret enabled auto-merge (squash) June 10, 2024 23:33
@dsherret dsherret changed the title fix: support deno install <alias>@npm:<package> FUTURE: support deno install <alias>@npm:<package> Jun 10, 2024
@dsherret dsherret disabled auto-merge June 10, 2024 23:48
@dsherret dsherret enabled auto-merge (squash) June 10, 2024 23:48
@dsherret dsherret merged commit d74be08 into denoland:main Jun 10, 2024
17 checks passed
nathanwhit pushed a commit that referenced this pull request Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support deno add with aliases
2 participants