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

Respect query part of the url when operating on the path #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

josch
Copy link

@josch josch commented Jan 12, 2025

This allows one to use bmaptool, with artifacts from gitlab CI which have a ?job=... query parameter at the end of the URL:

  • ignore the query part of the URL when determining the compression type
  • ignore the query part of the URL when computing the basename and stripping off the filename extension
  • first strip off and then re-apply the query part of the URL when adding the .bmap extension to the path

This allows one to use bmaptool, with artifacts from gitlab CI which
have a ?job=... query parameter at the end of the URL:

 - ignore the query part of the URL when determining the compression
   type
 - ignore the query part of the URL when computing the basename and
   stripping off the filename extension
 - first strip off and then re-apply the query part of the URL when
   adding the .bmap extension to the path
@josch josch changed the title Strip off query part from url when operating on the path Respect query part of the url when operating on the path Jan 28, 2025
@josch
Copy link
Author

josch commented Jan 29, 2025

For the record, we are now using a patched bmaptool in our Debian derivative for the MNT Reform open hardware laptop with this patch: https://source.mnt.re/reform/reform-debian-packages/-/blob/main/patches/bmap-tools

That way, this change will get a bit more testing in the wild compared to just sitting in a pull request. :)

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.

1 participant