New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix GitHub Actions on Windows #220
Conversation
Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
@@ -25,4 +25,4 @@ jobs: | |||
gotestsum_version: 1.7.0 | |||
|
|||
- name: Test | |||
run: gotestsum --format short-verbose -- -race -timeout=20m -coverprofile=coverage.txt -covermode=atomic ./... | |||
run: gotestsum --format short-verbose -- -race -timeout=20m -coverprofile=coverage_txt -covermode=atomic ./... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I honestly don't know why, but .
makes Windows unhappy. See https://github.com/go-openapi/runtime/runs/3888315510.
// Windows doesn't have the system cert pool. | ||
pool = x509.NewCertPool() | ||
} else { | ||
pool, err = x509.SystemCertPool() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to not use the system cert pool at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this test I think this is fine.
// Windows doesn't have the system cert pool. | ||
pool = x509.NewCertPool() | ||
} else { | ||
pool, err = x509.SystemCertPool() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this test I think this is fine.
Signed-off-by: Kazuyoshi Kato katokazu@amazon.com