mirror of
https://github.com/gogrlx/snack.git
synced 2026-04-02 05:08:42 -07:00
chore: update Go to 1.26.1, fix goimports formatting, add tests
- Update go.mod from Go 1.26.0 to 1.26.1 - Update dependencies: golang.org/x/sync, golang.org/x/sys, charmbracelet/x/exp/charmtone, mattn/go-runewidth - Fix goimports formatting in 10 files - Add apk/normalize_test.go: tests for normalizeName and parseArchNormalize with all known arch suffixes - Add rpm/parse_test.go: tests for parseList, parseInfo, parseArchSuffix, and normalizeName (all at 100% coverage) - All tests pass with -race, staticcheck and go vet clean
This commit is contained in:
@@ -191,7 +191,6 @@ func listRepos(_ context.Context) ([]snack.Repository, error) {
|
||||
return repos, nil
|
||||
}
|
||||
|
||||
|
||||
func addRepo(ctx context.Context, repo snack.Repository) error {
|
||||
repoLine := repo.URL
|
||||
if repo.Type != "" {
|
||||
|
||||
Reference in New Issue
Block a user