Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

Commit

Permalink
Fix issue #108 panic when sandbox-binary is a file
Browse files Browse the repository at this point in the history
  • Loading branch information
datacharmer committed Jun 6, 2020
1 parent eeea761 commit 78cffc6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .build/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.50.0
1.50.1
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.50.1 06-Jun-2020

### BUGS FIXED

* Fix Issue #108: panic error when sandbox binary is not a directory

## 1.50.0 16-May-2020

### NEW FEATURES
Expand Down
3 changes: 3 additions & 0 deletions cmd/single.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ func fillSandboxDefinition(cmd *cobra.Command, args []string, usingImport bool)
if err != nil {
return sd, err
}
if !common.DirExists(basedir) {
return sd, fmt.Errorf("sandbox binary %s is not a directory or doesn't exist", basedir)
}
if os.Getenv("SANDBOX_BINARY") == "" {
_ = os.Setenv("SANDBOX_BINARY", basedir)
}
Expand Down
4 changes: 2 additions & 2 deletions common/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
package common

// This file was generated during build. Do not edit.
// Build time: 2020-05-16 11:06
// Build time: 2020-06-06 05:33

var VersionDef string = "1.50.0" // 2020-05-16
var VersionDef string = "1.50.1" // 2020-06-06

// Compatible version is the version used to mark compatible archives (templates, configuration).
// It is usually major.minor.0, except when we are at version 0.x, when
Expand Down

0 comments on commit 78cffc6

Please sign in to comment.