Skip to content

Commit

Permalink
add changes after review
Browse files Browse the repository at this point in the history
Signed-off-by: Rakshit Gondwal <[email protected]>
  • Loading branch information
rakshitgondwal committed Jul 9, 2024
1 parent e1e33e9 commit 6ef24c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions cmd/oci/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,6 @@ func modifyDockerfileWithTag(path, tag string, devDeps bool) error {
dockerfilePath = "./Dockerfile"
}

_, err := os.Stat(dockerfilePath)
if err != nil {
return err
}

file, err := os.Open(dockerfilePath)
if err != nil {
return err
Expand Down
4 changes: 2 additions & 2 deletions pkg/builddocker/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ func readDockerFile(file *os.File) ([]string, error) {
func editDockerfile(lines []string, dev bool, tag string) ([]string, error) {
var searchTag string
if dev {
searchTag = "# bsfimage:dev"
searchTag = "bsfimage:dev"
} else {
searchTag = "# bsfimage:runtime"
searchTag = "bsfimage:runtime"
}

var selectedFrom string
Expand Down

0 comments on commit 6ef24c7

Please sign in to comment.