Skip to content

Conversation

@SuficioAC
Copy link
Contributor

@SuficioAC SuficioAC commented Oct 18, 2024

Url::join will truncate the entire path if an absolute path is joined into it.

Given a custom registry API:

DOCSRS_REGISTRY_API_HOST=https://host/api/packages/cargo/

The query will hit this URL:

https://host/api/v1/crates

Instead of:

https://host/api/packages/cargo/api/v1/crates

Not quite sure if this is desired behavior or a bug but this seems inline with other uses of the registry API in RegistryApi where the full path is preserved.

@SuficioAC SuficioAC requested a review from a team as a code owner October 18, 2024 22:28
@github-actions github-actions bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Oct 18, 2024
Copy link
Member

@syphar syphar left a comment

Choose a reason for hiding this comment

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

I'm not sure about the use-case here, but I see that there is an inconsistency.

Thinking about it, the search functionality would also belong into the registry-api, but this can be done separately.

@syphar syphar merged commit 4e3e136 into rust-lang:master Oct 20, 2024
11 checks passed
@github-actions github-actions bot added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Oct 20, 2024
@syphar syphar removed the S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it label Oct 21, 2024
@SuficioAC SuficioAC deleted the search branch October 21, 2024 21:54
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.

2 participants