Skip to content

Merge main from upstream #2

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

Closed
wants to merge 248 commits into from
Closed

Conversation

radsaq
Copy link

@radsaq radsaq commented Mar 9, 2025

There are some failing tests here, but there were some failing tests before due to the changes to error handling. I've tested it locally with lazygit and it seems to work (and passes integration tests).

This is the second step towards fixing jesseduffield/lazygit#4354 and requires jesseduffield/lazygit#4377 to be merged first.

jesseduffield and others added 30 commits August 23, 2020 16:27
Git file, git, and ssh transports use a full-duplex transport protocol.
This is now located under `plumbing/transport`.
The server transport along with its `Serve*` methods are now located
under `plumbing/server`.
dependabot bot and others added 21 commits February 10, 2025 13:51
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.8 to 3.28.9.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Commits](github/codeql-action@v3.28.8...v3.28.9)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
…github/codeql-action-3.28.9

build: bump github/codeql-action from 3.28.8 to 3.28.9
…ng-org-0f02c582b3

build: bump golang.org/x/crypto from 0.32.0 to 0.33.0 in the golang-org group
Bumps the golang-org group with 1 update: [golang.org/x/net](https://github.com/golang/net).


Updates `golang.org/x/net` from 0.34.0 to 0.35.0
- [Commits](golang/net@v0.34.0...v0.35.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: golang-org
...

Signed-off-by: dependabot[bot] <[email protected]>
…ng-org-4d974c417d

build: bump golang.org/x/net from 0.34.0 to 0.35.0 in the golang-org group
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.9 to 3.28.10.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Commits](github/codeql-action@v3.28.9...v3.28.10)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
…github/codeql-action-3.28.10

build: bump github/codeql-action from 3.28.9 to 3.28.10
Signed-off-by: Paulo Gomes <[email protected]>
Bumps overall dependencies. The x/crypto dependency requires toolchain above go1.22, which violates the current support
for last 3 stable Go versions.

Given that this is required to mitigate GO-2025-3487, we are going
ahead with this change.

Signed-off-by: Paulo Gomes <[email protected]>
Examples of registering a custom transport are already available in _examples/custom_http.
Another motivation for the removal is the error during test execution in Go 1.24:
Error: plumbing\transport\registry_example_test.go:11:1: ExampleInstallProtocol refers to unknown identifier: InstallProtocol

Signed-off-by: Paulo Gomes <[email protected]>
Violation of the new Go 1.24 rules for tests naming conventions were leading
to errors during test time:

Error: plumbing\object\commit_walker_bfs_filtered_test.go:13:6: TestfilterCommitIterSuite has malformed name: first letter after 'Test' must not be lowercase
Error: plumbing\object\merge_base_test.go:64:6: TestmergeBaseSuite has malformed name: first letter after 'Test' must not be lowercase
Signed-off-by: Paulo Gomes <[email protected]>
Bumps [github.com/ProtonMail/go-crypto](https://github.com/ProtonMail/go-crypto) from 1.1.5 to 1.1.6.
- [Release notes](https://github.com/ProtonMail/go-crypto/releases)
- [Commits](ProtonMail/go-crypto@v1.1.5...v1.1.6)

---
updated-dependencies:
- dependency-name: github.com/ProtonMail/go-crypto
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
…ub.com/ProtonMail/go-crypto-1.1.6

build: bump github.com/ProtonMail/go-crypto from 1.1.5 to 1.1.6
Bumps the golang-org group with 2 updates: [golang.org/x/net](https://github.com/golang/net) and [golang.org/x/sys](https://github.com/golang/sys).


Updates `golang.org/x/net` from 0.35.0 to 0.36.0
- [Commits](golang/net@v0.35.0...v0.36.0)

Updates `golang.org/x/sys` from 0.30.0 to 0.31.0
- [Commits](golang/sys@v0.30.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: golang-org
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: golang-org
...

Signed-off-by: dependabot[bot] <[email protected]>
…ng-org-53f3691a8d

build: bump the golang-org group with 2 updates
git: worktree_commit, use all parent hashes on amend commit. Fixes go-git#1209
Bumps the golang-org group with 3 updates: [golang.org/x/crypto](https://github.com/golang/crypto), [golang.org/x/net](https://github.com/golang/net) and [golang.org/x/text](https://github.com/golang/text).


Updates `golang.org/x/crypto` from 0.35.0 to 0.36.0
- [Commits](golang/crypto@v0.35.0...v0.36.0)

Updates `golang.org/x/net` from 0.36.0 to 0.37.0
- [Commits](golang/net@v0.36.0...v0.37.0)

Updates `golang.org/x/text` from 0.22.0 to 0.23.0
- [Release notes](https://github.com/golang/text/releases)
- [Commits](golang/text@v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: golang-org
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: golang-org
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: golang-org
...

Signed-off-by: dependabot[bot] <[email protected]>
…ng-org-abe002ed23

build: bump the golang-org group with 3 updates
@jesseduffield
Copy link
Owner

@radsaq Given how small the (pre-existing) changes are on this fork, what do you think about hard resetting to the upstream and then re-applying the changes over the top. We could even use a replace directive in the go.mod file to remove the need to update import paths.

Thoughts?

@jesseduffield
Copy link
Owner

Actually @stefanhaller has just reminded me that we had issues with the replace directive in the past so it's not worth doing.

@radsaq
Copy link
Author

radsaq commented Apr 4, 2025

I tested this with a replace directive to a local repo, so it seems to work for that. Does it not work as well when it's pointing to a remote url?

@stefanhaller
Copy link
Collaborator

@radsaq Replace directives have the problem that they don't work when users want to do go install github.com/jesseduffield/lazygit@latest. We discussed this at length the last time we tried to use one for a fork, and had to revert the change eventually. It seems to be a well-known problem, and as far as I understand, replace directives are only meant to be used for overriding a dependency during local development.

--

I now rebased the master branch onto upstream; I didn't force-push yet so that you guys can have a look. I pushed it as rebased-master in this repo.

A few things:

  • I decided not to rebase it onto upstream main, but onto the last release (5.14.1). They diverge quite a bit, it seems. The reason is that main is currently somewhere in the middle between v5 and v6, so it doesn't feel like a good base for use to use.
  • I reverted the two commits that deal with branch unmarshalling errors, and replaced them with a much simpler change. I can't test it because I don't know what the original problem was that those changes were supposed to fix (better commit messages please!). If this looks fine, I'll drop the original commits and the reverts.

A PR that integrates this into lazygit is here: jesseduffield/lazygit#4460

@jesseduffield
Copy link
Owner

I decided not to rebase it onto upstream main, but onto the last release (5.14.1). They diverge quite a bit, it seems. The reason is that main is currently somewhere in the middle between v5 and v6, so it doesn't feel like a good base for use to use.

Makes sense to me

I reverted the two commits that deal with branch unmarshalling errors, and replaced them with a much simpler change. I can't test it because I don't know what the original problem was that those changes were supposed to fix (better commit messages please!). If this looks fine, I'll drop the original commits and the reverts.

My bad on the commit messages. I like to believe that I've improved in that area since 2020!

Your commit looks good to me so let's go with that

@stefanhaller
Copy link
Collaborator

I rebased and force-pushed master, so I'm going to close this.

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.