I ran into case-insensitive goldenfile name collisions when importing pkg in another project:
go: github.com/canonical/ubuntu-desktop-provision/provd/internal/services/telemetry imports
github.com/ubuntu/ubuntu-report/pkg/sysmetrics: create zip: pkg/sysmetrics/testdata/good/gold/cachereport-twice.ReportType0-no: case-insensitive file name collision: "pkg/sysmetrics/testdata/good/gold/cachereport-twice.ReportType0-NO" and "pkg/sysmetrics/testdata/good/gold/cachereport-twice.ReportType0-no"
pkg/sysmetrics/testdata/good/gold/cachereport-twice.ReportType0-y: case-insensitive file name collision: "pkg/sysmetrics/testdata/good/gold/cachereport-twice.ReportType0-Y" and "pkg/sysmetrics/testdata/good/gold/cachereport-twice.ReportType0-y"
pkg/sysmetrics/testdata/good/gold/cachereport-twice.ReportType0-yes: case-insensitive file name collision: "pkg/sysmetrics/testdata/good/gold/cachereport-twice.ReportType0-YES" and "pkg/sysmetrics/testdata/good/gold/cachereport-twice.ReportType0-yes"
This PR aims to solve these by having the goldenfiles for these testcases save with -lc and -uc
appended to the end of the file name to differentiate goldenfiles in case insensitive environments
I ran into case-insensitive goldenfile name collisions when importing
pkg
in another project:This PR aims to solve these by having the goldenfiles for these testcases save with
-lc
and-uc
appended to the end of the file name to differentiate goldenfiles in case insensitive environments