From 469611650c9191a81492ae718036b0ae09483623 Mon Sep 17 00:00:00 2001 From: shankar0123 Date: Sun, 19 Apr 2026 00:27:11 +0000 Subject: [PATCH] fix(cli): add missing os + path/filepath imports to client_test.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow-up to 91642e2. TestClient_ImportCertificates_SixFieldPayload uses filepath.Join(t.TempDir(), ...) and os.WriteFile to stage a test PEM, but the import block only listed encoding/json, encoding/pem, net/http, etc. — neither os nor path/filepath was imported. go vet rejected the package with 'undefined: filepath' (and would have caught 'undefined: os' next). Add both imports. No behavioral change — the referenced symbols are the standard library's usual names for their respective packages, so the test compiles and runs exactly as intended. CI should now pass go build + go vet on the cli package. --- internal/cli/client_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/cli/client_test.go b/internal/cli/client_test.go index fe6f718..c01037a 100644 --- a/internal/cli/client_test.go +++ b/internal/cli/client_test.go @@ -10,6 +10,8 @@ import ( "math/big" "net/http" "net/http/httptest" + "os" + "path/filepath" "testing" "time" )