Skip to content

Conversation

sashamelentyev
Copy link

No description provided.

@Copilot Copilot AI review requested due to automatic review settings August 22, 2025 16:47
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes redundant dependencies and performs cleanup tasks across the codebase. The changes focus on modernizing code by removing deprecated imports and utilizing newer standard library features.

Key changes:

  • Replaces deprecated golang.org/x/net/context with standard library context package
  • Removes unused golang.org/x/exp dependency and replaces maps.Clear with built-in clear function
  • Removes unused code including buffer pools, sideband functions, and error constants

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
utils/ioutil/context_test.go Updates context import and improves string comparison efficiency
storage/filesystem/object.go Removes unused copyBufferPool variable
remote.go Removes unused sideband import and buildSidebandIfSupported function
plumbing/format/packfile/parser_cache.go Replaces golang.org/x/exp/maps with built-in clear function
plumbing/format/packfile/packfile.go Removes unused error constants and os import
go.mod Removes golang.org/x/exp dependency

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@sashamelentyev
Copy link
Author

@pjbgf hello!
Please, review this

@sudo-bmitch
Copy link

See golang/go#49506 for the deprecation of golang.org/x/net/context.

@sashamelentyev sashamelentyev changed the title all: rm redundant dep and cleanup utils: rm redundant dep and cleanup Sep 17, 2025
@pjbgf
Copy link
Member

pjbgf commented Sep 17, 2025

@sashamelentyev thanks for looking into this. Please reword the commit replacing all: with *: or utils: to make the PR validation check pass.

This also needs to be rebased, as some of the errors were fixed by #1643.

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.

3 participants