Skip to content

Use custom user-agent when using wget - #46

Closed
robert7k wants to merge 1 commit into
gentoo:masterfrom
robert7k:user-agent
Closed

robert7k wants to merge 1 commit into
gentoo:masterfrom
robert7k:user-agent

Conversation

@robert7k

@robert7k robert7k commented May 28, 2026 •

Copy link
Copy Markdown
Contributor

crates.io restricts access to clients with a generic user-agent string. Therefore, we configure a custom user-agent.

See also https://crates.io/data-access

Comment thread pycargoebuild/fetch.py Outdated
subprocess.check_call(
["wget", "-O", str(path), url],
["wget",
"-U", "pycargoebuild (https://github.com/gentoo/pycargoebuild)",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hmm, I suppose we ought to technically include the version here.

Could you also cover the aria2c code path? I suppose they don't block it now, but they might in the future.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@robert7k
robert7k requested a review from mgorny May 28, 2026 15:49
@mgorny

mgorny commented May 28, 2026

Copy link
Copy Markdown
Member

Thanks. Could you squash and signoff per Gentoo's GCO?

crates.io restricts access to clients with a generic user-agent
string. Therefore, we configure a custom user-agent.

See also https://crates.io/data-access

Signed-off-by: Robert Siebeck <gentoo.2019@r123.de>
@robert7k

Copy link
Copy Markdown
Contributor Author

Thanks. Could you squash and signoff per Gentoo's GCO?

Done

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