sky: name goldens by the exact version (review nit)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+2
−1
sky/sky_test.go+2 −1
CI passed — run details
diff --git a/sky/sky_test.go b/sky/sky_test.go| index 62fdd18..af37218 100644 |
| --- a/sky/sky_test.go |
| +++ b/sky/sky_test.go |
| @@ -9,6 +9,7 @@ import ( |
| "net/http" |
| "net/http/httptest" |
| "os" |
| + pathpkg "path" |
| "path/filepath" |
| "strings" |
| "testing" |
| @@ -125,7 +126,7 @@ var update = flag.Bool("update", false, "rewrite sky/testdata goldens (and bump |
| // hold each file for a year under its versioned URL. |
| func TestSkyGoldens(t *testing.T) { |
| for file, body := range layers(ID("golden")) { |
| - path := filepath.Join("testdata", strings.TrimPrefix(Prefix, "/static/estilo/sky/")[:2]+"-"+file) |
| + path := filepath.Join("testdata", pathpkg.Base(Prefix)+"-"+file) |
| if *update { |
| if err := os.WriteFile(path, []byte(body), 0o644); err != nil { |
| t.Fatal(err) |