-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
work around
github.com/tmc/keyring
compile error for windows
- Loading branch information
Showing
3 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// +build !windows | ||
|
||
package jira | ||
|
||
import "github.com/tmc/keyring" | ||
|
||
func keyringGet(user string) (string, error) { | ||
return keyring.Get("go-jira", user) | ||
} | ||
|
||
func keyringSet(user, passwd string) error { | ||
return keyring.Set("go-jira", user, passwd) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package jira | ||
|
||
import "fmt" | ||
|
||
func keyringGet(user string) (string, error) { | ||
return "", fmt.Errorf("Keyring is not supported for Windows, see: https://github.com/tmc/keyring") | ||
} | ||
|
||
func keyringSet(user, passwd string) error { | ||
return fmt.Errorf("Keyring is not supported for Windows, see: https://github.com/tmc/keyring") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters