soundcloud-cli
soundcloud-cli copied to clipboard
Fix tablewriter v1.x compatibility in go.mod and update code to use new API
Problem
PR #89 fails due to a missing go.sum entry for github.com/olekukonko/tablewriter v1.x. Additionally, the code in pkg/sccli/sccli.go wasn't updated to be compatible with the new tablewriter API in v1.x.
Changes Made
This PR resolves the compatibility issues by:
- Running
go mod tidyto update go.sum with the correct checksums for tablewriter v1.0.6 - Updating the code in
pkg/sccli/sccli.goto use the new tablewriter API:- Replaced
NewWriter()withNewTable() - Replaced
SetHeader()with theWithHeader()option - Removed header color settings as they would require different configuration in v1.x
- Kept the basic functionality intact for displaying the track information
- Replaced
Testing
The changes have been tested by:
- Successfully building the application with
make build-linux - Verifying the basic help output works correctly
This allows the PR #89 to be merged without any further build errors.
[!WARNING]
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
soundcloud.com
- Triggering command:
/tmp/go-build3523993178/b244/soundcloud.test -test.testlogfile=/tmp/go-build3523993178/b244/testlog.txt -test.paniconexit0 -test.gocoverdir=/tmp/go-build3523993178/b244/gocoverdir -test.timeout=10m0s -test.v=true(dns block)If you need me to access, download, or install something from one of these locations, you can either:
- Configure Actions setup steps to set up my environment, which run before the firewall is enabled
- Add the appropriate URLs or hosts to my firewall allow list
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.