icexin / eggos

A Go unikernel running on x86 bare metal
http://eggos.icexin.com
MIT License
2.23k stars 113 forks source link

[Bug]: mountfs.go chown errors #112

Open pyscripter99 opened 1 year ago

pyscripter99 commented 1 year ago

Describe your bug or error

running: egg build -o kernel.sh on ubuntu in virtualbox (as to avoid issues with multiple go versions)

Go Version

1.16.15

Relevant log output

../../go/pkg/mod/github.com/icexin/eggos@v0.4.1/fs/mount/mountfs.go:262:30: cannot use m (type *MountableFs) as type afero.Fs in argument to lstatIfPossible:
    *MountableFs does not implement afero.Fs (missing Chown method)
../../go/pkg/mod/github.com/icexin/eggos@v0.4.1/fs/mount/mountfs.go:266:18: cannot use m (type *MountableFs) as type afero.Fs in argument to departWalk:
    *MountableFs does not implement afero.Fs (missing Chown method)
icexin commented 1 year ago

It seems you are using a higher version afero than eggos

pyscripter99 commented 1 year ago

How would I fix?

edit:

I just run the eggos installer, via go install ( maybe go get ), then used egg build.