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

Use "?dir=..." portion of "registry add" local path specification. #4070

Merged
merged 1 commit into from Sep 29, 2020

Conversation

kquick
Copy link
Contributor

@kquick kquick commented Sep 25, 2020

The registry targets generally follow a URL formatting schema with
support for a query parameter of "?dir=subpath" to specify a sub-path
location below the URL root.

Alternatively to a URL specification, an absolute path can be specified. This specification
mode accepts the query parameter but ignores/drops that query parameter. It would
probably be better to either:

  • disallow the query parameter for the path form, or
  • recognize the query parameter and add to the path

This patch implements the second for consistency, and to make it easier for
tooling that might switch between a remote git reference and a local
path reference.

See also issue #4050.

The registry targets generally follow a URL formatting schema with
support for a query parameter of "?dir=subpath" to specify a sub-path
location below the URL root.

Alternatively, an absolute path can be specified.  This specification
mode accepts the query parameter but ignores/drops it.  It would
probably be better to either (a) disallow the query parameter for the
path form, or (b) recognize the query parameter and add to the path.

This patch implements (b) for consistency, and to make it easier for
tooling that might switch between a remote git reference and a local
path reference.

See also issue NixOS#4050.
@edolstra edolstra merged commit 76f0007 into NixOS:master Sep 29, 2020
@edolstra
Copy link
Member

Thanks!

@kquick kquick deleted the kwq/path-dir-query branch September 29, 2020 23:15
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.

None yet

2 participants