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

Fix breakage on main catbox endpoints #35

Merged
merged 4 commits into from
Jan 12, 2024
Merged

Conversation

RivenSkaye
Copy link
Contributor

Fixes #34 by changing Client::new() to Client::builder() and adding a User Agent string on all calls to Catbox. A comment on the issue I opened mentioned setting a UAString works to make catbox functional again. It also bumps the dependencies to make it build successfully on both nightly and stable toolchains again, as dtolnay/proc-macro2#391 wasn't included in the last pinned version of the transitive dependency that was included through at least Clap.

The UAString used is built up using env vars set by Cargo at build time expanded using the std::env! macro, so no new dependencies are added. I've also taken the liberty of adding the UAString to the litter subcommands to prevent future breakage there.

@RivenSkaye
Copy link
Contributor Author

I just noticed that I'd forgotten to bump the version in Cargo.toml. Fixed that so the release workflow won't break on a new tag

@Savolae Savolae merged commit e1b5e4e into Savolae:main Jan 12, 2024
@RivenSkaye
Copy link
Contributor Author

Oh god, I just noticed I forgot to update the lockfile itself

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.

Upload failures
2 participants