240718.1 · d6ebdd1cdd8e059d8c5ebfe409a7f36345a86e44
fix go 1.20 build and retract v1.0.7
This commit fixes the build for Go 1.20 by removing use of the slices package and retracts the v1.0.7 release.
It also changes the CI to test go1.20 (our minimum supported version) so that this will not happen again in the future.
reading declarations
Changes to internal/fmtdirent/fmtdirent_go121.go. All files
internal/fmtdirent/fmtdirent_go121.go
@@ -0,0 +1,15 @@+//go:build go1.21++package fmtdirent++import "io/fs"++// FormatDirEntry returns a formatted version of dir for human readability.+// Implementations of [DirEntry] can call this from a String method.+// The outputs for a directory named subdir and a file named hello.go are:+//+// d subdir/+// - hello.go+func FormatDirEntry(dir fs.DirEntry) string {+ return fs.FormatDirEntry(dir)+}