Skip to content
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

Fix tests and simplify library description #15

Merged
merged 2 commits into from
Jan 25, 2025
Merged

Conversation

abitrolly
Copy link
Contributor

@abitrolly abitrolly commented Jan 23, 2025

Fixes this test failure by using Go version from go.mod.

$ go vet -v ./...
go: errors parsing go.mod:
/home/runner/work/cli-altsrc/cli-altsrc/go.mod:3: invalid go version '1.23.2': must match format 1.23
make: *** [Makefile:6: vet] Error 1

But doesn't fix this DNS lookup error that only occurs on GitHub.

=== RUN   TestReadURI/Invalid_http_URL
    uri_source_cache_test.go:55: 
        	Error Trace:	/home/runner/work/cli-altsrc/cli-altsrc/uri_source_cache_test.go:55
        	Error:      	Error "Get \"http://foo\": dial tcp: lookup foo on 127.0.0.53:53: server misbehaving" does not contain "no such host"
        	Test:       	TestReadURI/Invalid_http_URL
``

The example below still lacks proper imports to be standalone.

@abitrolly abitrolly changed the title Simplify library description Fix tests and simplify library description Jan 23, 2025
@dearchap
Copy link
Contributor

@abitrolly Which version of go are you using ? I'm at 1.23.2

@dearchap dearchap merged commit a0b0110 into main Jan 25, 2025
0 of 3 checks passed
@dearchap dearchap deleted the abitrolly-patch-1 branch January 25, 2025 23:18
@abitrolly
Copy link
Contributor Author

@dearchap I believe this was from 1.18 in CI. My local Go is 1.23.5 from Homebrew.

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.

2 participants