зеркало из https://github.com/github/certstore.git
add linux file that will give helpful compiler error
This commit is contained in:
Родитель
ffa8f4c5d2
Коммит
d8eacf29d5
|
@ -0,0 +1,14 @@
|
|||
package certstore
|
||||
|
||||
import "errors"
|
||||
|
||||
// This will hopefully give a compiler error that will hint at the fact that
|
||||
// this package isn't designed to work on Linux.
|
||||
func init() {
|
||||
CERTSTORE_DOESNT_WORK_ON_LINIX
|
||||
}
|
||||
|
||||
// Implement this function, just to silence other compiler errors.
|
||||
func openStore() (Store, error) {
|
||||
return nil, errors.New("certstore only works on macOS and Windows")
|
||||
}
|
Загрузка…
Ссылка в новой задаче