Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
Fix: Carry access tokens across installations (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanlouie authored Jun 26, 2019
1 parent adb0b10 commit 004a406
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ func Install(path string) (err error) {
return err
}

// Track access tokens across installations
accessTokens := map[string]string{}
results := core.WalkComponentTree(path, []string{}, func(path string, component *core.Component) (err error) {
log.Info(emoji.Sprintf(":point_right: Starting install for component: %s", component.Name))

Expand All @@ -40,7 +42,6 @@ func Install(path string) (err error) {
}

// Attempt to load access tokens if we are on the root component
accessTokens := map[string]string{}
if path == "./" {
accessTokens, err = component.GetAccessTokens()
if err != nil {
Expand Down

0 comments on commit 004a406

Please sign in to comment.