In afero v1.6.0 the FromIOFS type was added [1], which
facilitates interopability with the fs.FS interface of
the Go standard library.
To support afero.FromIOFS in eggos, afero was updated
to the latest version.
Note: the afero.Fs interface has been updated since v1.4.0
to include the Chown method. As such, the logger, mount
and smb file system types were updated to include the Chown
method.
In particular, the fs/logger.logger, fs/mount.MountableFs and
fs/stripprefix.fs file system types have been updated to include
Chown.
However, as of yet, a stub implementation of Chown exist for the
smb.Fs file system type.
[1]: https://pkg.go.dev/github.com/spf13/afero#FromIOFS
* drivers/vbe: add docs
Also, remove unused bootloaderMagic constant. A corresponding constant
is defined in and used by the multiboot package.
* drivers/qemu: add docs
* drivers/multiboot: fix typo; s/DrivesrAddr/DriversAddr/
* all: add go:build comments for Go build tags, as used by Go 1.17
ref: https://go.dev/doc/go1.17#build-lines
This commit was automated using goimports:
find . -type f -name '*.go' | xargs -I '{}' goimports -w '{}'
When running applications on environments where there is no environment, calls to os.Setenv to set a loglevel have inconsistent results. Similarly, setting this environment variable before the first log event, and thus making that call moot, is racy.
Instead, then, export log levels, drop the potential stutter in log.LogLvl to log.Level, and allow implementations/ callers of this package to set a log level accordingly, while maintaining the default behaviour
Thanks for @prologic 's contribution.
The following adjustments have been made on the basis of the original code:
- The binary files generated by `egg test` and `egg run` are placed in the temporary directory to keep the source code directory clean
- Modify the code of `magefile.go` to synchronize with the `egg` command