Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes changes that revolve around dependency management and code optimization. The key changes are the removal of unnecessary dependencies, the replacement of a clipboard package, and the simplification of the clipboard usage in the code.
Dependency management:
go.mod
: Removed thegolang.design/x/clipboard v0.7.0
package and added thegithub.com/atotto/clipboard v0.1.4
package. This change indicates a shift in the clipboard package used in the project.go.mod
: Several indirect dependencies have been removed, specificallygolang.org/x/exp/shiny
,golang.org/x/image
, andgolang.org/x/mobile
. This could be due to the removal of certain direct dependencies or a cleanup of unused packages.Code optimization:
.github/workflows/release-artifacts.yaml
: Removed theInstall dependencies
step which was used to installlibx11-dev
. This suggests that the dependency is no longer needed for the build and release process.pkg/output/messages.go
: Replaced the import ofgolang.design/x/clipboard
withgithub.com/atotto/clipboard
, reflecting the change in the clipboard package.pkg/output/messages.go
: Simplified the clipboard usage in thePrint
function. The initialization of the clipboard and the writing to it have been replaced with a single call toclipboard.WriteAll
. This change makes the code more concise and easier to read.