Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
james0209 committed May 29, 2024
1 parent 277a65b commit 51aeb2a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build/git_revision.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type GitRevision struct {
Product product.Product
InstallDir string

// LicenseDir represents directory path where to install license files (required for enterprise versions, optional for OSS)
// LicenseDir represents directory path where to install license files.
// If empty, license files will placed in the same directory as the binary.
LicenseDir string

Expand Down
5 changes: 1 addition & 4 deletions build/git_revision_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ var (
func TestGitRevision_terraform(t *testing.T) {
testutil.EndToEndTest(t)

tempDir, err := os.MkdirTemp("", "license")
if err != nil {
t.Fatal(err)
}
tempDir := t.TempDir()

gr := &GitRevision{
Product: product.Terraform,
Expand Down
2 changes: 1 addition & 1 deletion checkpoint/latest_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type LatestVersion struct {
SkipChecksumVerification bool
InstallDir string

// LicenseDir represents directory path where to install license files (required for enterprise versions, optional for OSS)
// LicenseDir represents directory path where to install license files.
// If empty, license files will placed in the same directory as the binary.
LicenseDir string

Expand Down
4 changes: 2 additions & 2 deletions releases/exact_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ type ExactVersion struct {
InstallDir string
Timeout time.Duration

// LicenseDir represents directory path where to install license files (required for enterprise versions, optional for OSS)
// If empty, license files will placed in the same directory as the binary.
// LicenseDir represents directory path where to install license files
// (required for enterprise versions, optional for Community editions).
LicenseDir string

// Enterprise indicates installation of enterprise version (leave nil for Community editions)
Expand Down
4 changes: 2 additions & 2 deletions releases/latest_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ type LatestVersion struct {
Timeout time.Duration
IncludePrereleases bool

// LicenseDir represents directory path where to install license files (required for enterprise versions, optional for OSS)
// If empty, license files will placed in the same directory as the binary.
// LicenseDir represents directory path where to install license files
// (required for enterprise versions, optional for Community editions).
LicenseDir string

// Enterprise indicates installation of enterprise version (leave nil for Community editions)
Expand Down

0 comments on commit 51aeb2a

Please sign in to comment.