Repository navigation
Conversation
helm dependency upgrade wasn't working on certain file system because it assumes that os.rename is available. Since rename isn't available for subfolders in docker containers, I ripped a fallback rename strategy from dep (https://github.com/golang/dep/blob/5b1fe9e6d89372487d0aac78d9c5362a517857e7/internal/fs/fs.go#L103-L118) that works in docker. Signed-off-by: Brice Rising <[email protected]>
The fs package tests are going to be a lot of work to get working without the internal test package used by golang/dep, so I removed all of the unused ones by this project to make the work easier. Signed-off-by: Brice Rising <[email protected]>
Recreated the features of the test package in dep that were necessary to run the tests in the fs package. Signed-off-by: Brice Rising <[email protected]>
Root can access all files, so the tests for inaccessible files were failing. Now we will skip these tests when running as root. Signed-off-by: Brice Rising <[email protected]>
Our style settings don't like underscores in variable names, so I switched to camel case. Also, err was unused in some places, so I made an error a fail condition for some test. Signed-off-by: Brice Rising <[email protected]>
Unused var was in fs.go. Removed it. Signed-off-by: Brice Rising <[email protected]>
Neeted to run formatting on fs_test.go Signed-off-by: Brice Rising <[email protected]>
|
We might need CNCF's legal team to have a look at this. cc @michelleN |
|
I'm a little confused, I've fixed both of the gofmt issues locally with |
|
Is there anything I can do to help get this merged? If there's a contact on the CNCF legal team that I can talk to, I would be happy to start communications |
|
Not much at this time other than getting the tests to pass. We have all been away at kubecon for the past week. |
|
Oh ok, I hope the conference was great! The only thing that appears to be failing as far as I can tell is the linter that looks for the apache license. Should I commit that line to each file before we hear back about whether we're allowed to use this code? |
This is probably not the correct apporach to using bsd licensed code under an apache license. Signed-off-by: Brice Rising <[email protected]>
I found another package that took code from a BSD licensed open source project. I copied their approach for reusing that license. Signed-off-by: Brice Rising <[email protected]>
Signed-off-by: Brice Rising <[email protected]>
Signed-off-by: Brice Rising <[email protected]>
|
I noticed that this package also reuses code licensed under a BSD style license, I've copied the approach used in that package and now it's passing the linter |
Signed-off-by: Brice Rising <[email protected]>
|
Is there anything I can do to make progress on this PR? |
|
Since this is BSD-licensed code, it's fine to take it and re-license it as Apache 2. The question, though, is whether that practice follows the DCO. We're just waiting on a response on how we can move forward. |
|
Here's the response from the CNCF legal team:
So in order to accept this PR:
Once that's done this should be good to go from a legal perspective. Thanks for your patience! |
|
ping |
|
due to inactivity, I'm going to go ahead and close this. If anyone else feels like taking this across the finish line, feel free! |
This code was ported over from PR #5038, #6738 which were originally for helm v2. The code contains functions from golang/dep/internal/fs for renaming files. Signed-off-by: Yagnesh Mistry <[email protected]>
helm dependency upgrade wasn't working on certain file system because it assumes that os.rename is available. Since rename isn't available for subfolders in docker containers, I ripped a fallback rename strategy from dep that works in docker. I wasn't able to reference this package as a dependency because it is an internal package in dep.
This is my first submission to the open source community, so please let me know if committing this fs package from golang/dep is the wrong approach, or if something in their license prohibits this.
https://github.com/golang/dep