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

Determine if a relative url is an http repository by trying to connect to it #1606

Closed
wants to merge 3 commits into from

Conversation

alnlarsen
Copy link
Collaborator

This fixes an issue that makes it impossible to use a local absolute path on Linux and Mac.

Closes #1595

…t to it

This fixes an issue that makes it impossible to use a local absolute
path on Linux and Mac.

Closes #1595
@alnlarsen alnlarsen force-pushed the 1595-detect-repo-when-using-relative-urls branch from 61b3aaa to 960af54 Compare June 10, 2024 12:50
@alnlarsen alnlarsen requested review from Denrask and removed request for rmadsen-ks June 19, 2024 15:19
@alnlarsen alnlarsen assigned Denrask and unassigned rmadsen-ks Jun 19, 2024
Copy link
Collaborator

@Denrask Denrask left a comment

Choose a reason for hiding this comment

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

Looks good. Don't we have unittests exercising this?

What happens now if the url is an absolute path is a directory that does not exist? I thought DetermineRepositoryType was handling this case before?

@alnlarsen
Copy link
Collaborator Author

@Denrask if an absolute path is used which is determined to be an http repository it will be used as a file repository (which will of course have no packages).

You raise a good point. We have a lot of unit tests exercising this, but they don't use base address. We should test them all with and without a base address.

@alnlarsen alnlarsen force-pushed the 1595-detect-repo-when-using-relative-urls branch from a7d58e8 to e19163d Compare July 2, 2024 08:43
@alnlarsen alnlarsen closed this Jul 2, 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.

tap package install returns 405 Not Allowed
3 participants