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

feat: improve flake_ref parsing #12

Closed
wants to merge 4 commits into from
Closed

Conversation

ysndr
Copy link
Contributor

@ysndr ysndr commented Mar 17, 2023

@ysndr ysndr changed the title feat: parse git flake refs feat: improve flake_ref parsing Mar 17, 2023
Comment on lines +207 to +212
let wrapped_url = {
let mut url = url.clone();
url.set_query(None);
url.set_fragment(None);
Url::parse(url.to_string().trim_start_matches("git+")).unwrap()
};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This looks weird but is a result of the url lib being a bit too correct..

@ysndr
Copy link
Contributor Author

ysndr commented Mar 23, 2023

this is to be superseded by #15

@ysndr ysndr marked this pull request as draft March 23, 2023 12:34
@ysndr
Copy link
Contributor Author

ysndr commented Mar 27, 2023

implemented as #15

@ysndr ysndr closed this Mar 27, 2023
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.

Implement Parsing for git flake refs flakeref: support ?dir=
2 participants