-
Notifications
You must be signed in to change notification settings - Fork 139
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
feat: scaffolding ca certs #1823
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1823 +/- ##
==========================================
+ Coverage 62.59% 63.58% +0.98%
==========================================
Files 107 107
Lines 13645 13729 +84
==========================================
+ Hits 8541 8729 +188
+ Misses 4298 4159 -139
- Partials 806 841 +35
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
6cd1944
to
247d1c4
Compare
19edbdf
to
7c65640
Compare
On similar note like #1823 (comment). |
c13bbc8
to
89225d7
Compare
1795986
to
79fa677
Compare
79fa677
to
6985264
Compare
Thanks for the review @matejvasek , I have added |
6985264
to
f939f22
Compare
/approve |
The windows test are failing on the symlink despite |
Shucks. I was hoping the |
@lkingland I think I know where the issue might be. Anyway... the
But these bytes are significant. |
Actually I am not 100% positive about this (but if we are not doing it we should be). I am only sure that we version file generated on Linux. |
@lkingland tl;dr we should not suppress the tests, it really indicates that something is wrong We need After these 3 changes it should work. I tested it. diff --git a/generate/templates/main.go b/generate/templates/main.go
index 45ec4848..f29ceb4f 100644
--- a/generate/templates/main.go
+++ b/generate/templates/main.go
@@ -80,7 +80,7 @@ func main() {
if err != nil {
return err
}
- _, err = w.Write([]byte(symlinkTarget))
+ _, err = w.Write([]byte(filepath.ToSlash(symlinkTarget)))
return err
case info.Mode()&fs.ModeType == 0: // regular file
f, err := os.Open(path)
diff --git a/pkg/filesystem/filesystem.go b/pkg/filesystem/filesystem.go
index d43aad75..c72cf5ee 100644
--- a/pkg/filesystem/filesystem.go
+++ b/pkg/filesystem/filesystem.go
@@ -173,7 +173,11 @@ func (o osFilesystem) Stat(name string) (fs.FileInfo, error) {
func (o osFilesystem) Readlink(link string) (string, error) {
link = filepath.FromSlash(link)
- return os.Readlink(filepath.Join(o.root, link))
+ t, err := os.Readlink(filepath.Join(o.root, link))
+ if err != nil {
+ return "", err
+ }
+ return filepath.ToSlash(t), nil
}
// subFS exposes subdirectory of underlying FS, this is similar to `chroot`. |
3c45c1c
to
12e1b6f
Compare
12e1b6f
to
fb63f3e
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lkingland, matejvasek The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
All functions which utilize scaffolding (Go for now, but will work for all) will now include root CA certs, as provided by the curl project.