Skip to content

Commit

Permalink
check 'language' key before installing from manifest (#2041)
Browse files Browse the repository at this point in the history
* check if language exists in manifest, fixes #2040

Signed-off-by: sriv <srikanth.ddit@gmail.com>

* bump version -> 1.3.2

Signed-off-by: sriv <srikanth.ddit@gmail.com>

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
sriv and github-actions[bot] committed Jul 11, 2021
1 parent 763a652 commit 063444f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion plugin/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,10 @@ func HandleUpdateResult(result InstallResult, pluginName string, exitIfFailure b

func installPluginsFromManifest(manifest *manifest.Manifest, silent, languageOnly bool) {
pluginsMap := make(map[string]bool)
pluginsMap[manifest.Language] = true
if manifest.Language != "" {
pluginsMap[manifest.Language] = true
}

if !languageOnly {
for _, plugin := range manifest.Plugins {
pluginsMap[plugin] = false
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

// CurrentGaugeVersion represents the current version of Gauge
var CurrentGaugeVersion = &Version{1, 3, 1}
var CurrentGaugeVersion = &Version{1, 3, 2}

// BuildMetadata represents build information of current release (e.g, nightly build information)
var BuildMetadata = ""
Expand Down

0 comments on commit 063444f

Please sign in to comment.