Skip to content

Bump Proton API Bridge version - #8344

Closed
henrybear327 wants to merge 1 commit into
rclone:masterfrom
henrybear327:protondrive/bump_proton_api_bridge_version
Closed

henrybear327 wants to merge 1 commit into
rclone:masterfrom
henrybear327:protondrive/bump_proton_api_bridge_version

Conversation

@henrybear327

Copy link
Copy Markdown
Member

What is the purpose of this change?

On the bridge side, there are the following PRs

On the go Proton api side

Thus, an attempt to bump the version is created in this PR.

Was the change discussed in an issue or in the forum before?

Checklist

  • I have read the contribution guidelines.
  • I have added tests for all changes in this PR if appropriate.
  • I have added documentation for the changes if appropriate.
  • All commit messages are in house style.
  • I'm done, this Pull Request is ready for review :-)

@henrybear327
henrybear327 requested a review from ncw January 27, 2025 22:34
@henrybear327

henrybear327 commented Jan 27, 2025 •

Copy link
Copy Markdown
Member Author

There is an issue with how go-proton-api (upstream) is dealing with custom resty which I can't wrap my head around to resolve ...

They did replace github.com/go-resty/resty/v2 => github.com/LBeernaertProton/resty/v2 v2.0.0-20231129100320-dddf8030d93a, due to this commit ProtonMail/go-proton-api@0ee691e.

The main problem is that I can't figure out a clean way to build just the ProtonDrive part of the code using this replaced dependency.

Any help would be appreciated... Thanks in advance

(From what I have seen, since ProtonDrive really benefit from any subsequent commits after that troublesome commit, we can also just rebase all the work on the commit before that and continue development there so we are hassle-free)

@henrybear327

Copy link
Copy Markdown
Member Author

cc: @lawmurray

@henrybear327 henrybear327 self-assigned this Jan 28, 2025
@ncw

ncw commented Jan 31, 2025

Copy link
Copy Markdown
Member

There is an issue with how go-proton-api (upstream) is dealing with custom resty which I can't wrap my head around to resolve ...

They did replace github.com/go-resty/resty/v2 => github.com/LBeernaertProton/resty/v2 v2.0.0-20231129100320-dddf8030d93a, due to this commit ProtonMail/go-proton-api@0ee691e.

You shouldn't ever release stuff with replace in! It makes it effectively unbuildable by the go tools.

The proper way to do this is to go through the code and actually replace github.com/go-resty/resty/v2 by github.com/LBeernaertProton/resty/v2 in the import statements - you might have to do that.

@adoreparler

Copy link
Copy Markdown

Any updates around this?

@ncw

ncw commented Feb 13, 2025

Copy link
Copy Markdown
Member

This needs a bit of work before it can be merged to remove the replace statements

Comment thread go.mod

replace github.com/go-resty/resty/v2 => github.com/LBeernaertProton/resty/v2 v2.0.0-20231129100320-dddf8030d93a

replace github.com/ProtonMail/go-proton-api => github.com/henrybear327/go-proton-api v0.0.0-20250127204557-9ee38cb0a689

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.

I don't think this is correct. The go.mod above still has it as github.com/henrybear327/go-proton-api v1.0.0, so you shouldn't need this replace directive, only update the version above.

@ncw

ncw commented Oct 15, 2026

Copy link
Copy Markdown
Member

Thank you for this. rclone now uses its own forks of Proton-API-Bridge and go-proton-api, and they already include the bridge changes this PR was bumping to pick up, so I'm going to close it. Thanks again for pushing those fixes upstream.

@ncw ncw closed this Oct 15, 2026
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.

4 participants