Skip to content

Commit

Permalink
Merge pull request #70 from suborbital/connor/gobinaries-build-err
Browse files Browse the repository at this point in the history
Remove need for io/fs
  • Loading branch information
cohix authored Jun 17, 2021
2 parents 7e4f866 + 185f720 commit 6ab1699
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions subo/context/directive.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package context

import (
"fmt"
"io/fs"
"io/ioutil"
"os"
"path/filepath"
Expand Down Expand Up @@ -47,7 +46,7 @@ func WriteDirective(cwd string, directive *directive.Directive) error {
return errors.Wrap(err, "failed to Marshal")
}

if err := ioutil.WriteFile(filePath, directiveBytes, fs.FileMode(os.O_WRONLY)); err != nil {
if err := ioutil.WriteFile(filePath, directiveBytes, os.FileMode(os.O_WRONLY)); err != nil {
return errors.Wrap(err, "failed to WriteFile")
}

Expand Down

0 comments on commit 6ab1699

Please sign in to comment.