Closed dolmen closed 2 years ago
Fixes #941 .
1st commit:
$ mkdir -p fwk/internal/fwktest $ git mv fwk/testdata/*.go fwk/internal/fwktest $ ( cd fwk/internal/fwktest; sed -i '' 's/package testdata/package fwktest/' *.go ) $ git add fwk/internal/fwktest
2nd commit:
$ ( cd fwk; find . -name '*.go' -exec grep -Hq 'fwk/testdata' '{}' \; -print | xargs sed -i '' -e 's!fwk/testdata!fwk/internal/fwktest!' -e 's!testdata\.!fwktest.!' -e 's!some tools defined in testdata!some tools defined in fwktest!' ) $ git add fwk
ah. one finnicky import ordering that doesn't suit gofmt (or goimport in this case).
gofmt
goimport
I'll handle the staticcheck failure.
staticcheck
thanks.
Fixes #941 .
1st commit:
2nd commit: