Removes internal dependency on fs.FS (#987)
As noted in slack, we are unlikley to long term use fs.FS internally. This ensures we attempt to cast to syscallfs.FS for all I/O by panicing on fs.Open. Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
@@ -33,8 +33,9 @@ empty:
|
||||
func Test_writefs(t *testing.T) {
|
||||
t.Parallel()
|
||||
tmpDir := t.TempDir()
|
||||
fs, err := writefs.NewDirFS(tmpDir)
|
||||
require.NoError(t, err)
|
||||
|
||||
fs := writefs.DirFS(tmpDir)
|
||||
// test expects to write under /tmp
|
||||
require.NoError(t, os.Mkdir(path.Join(tmpDir, "tmp"), 0o700))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user