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
transparent archives: present original archive path and inner path in output #178
Comments
This works (but I'm not the greatest judge as to its veracity):
|
I've been thinking about the implementation somewhat, and have some further thoughts.. this is kind of stream of consciousness:
File -> Layer -> Behaviors So, for the case of .zip file full of .gem files, we'd see something like: ./Downloads/gems.zip -> rodney.gem:data.tar.gz:rodney.rb -> Behaviors In the terminal output, you'd see something like:
or maybe:
Each layer would show their own table of behaviors. The less complicated we can make the JSON output, the better. |
With #174 we have transparent archive handling, but the output shows the temp file name:
/var/folders/3g/88131l9j11x995ppjbxsvhbh0000gn/T/bincapz-apko_0.13.2_linux_arm64.tar.gz1015874883/apko_0.13.2_linux_arm64/apko
What I think would be cool is if we can display the archive file as well as the file within it:
/Users/egibs/Downloads/apko_0.13.2_darwin_amd64.tar.gz ∴ apko
To accomplish this, we'll need a change to the
FileReport
struct:bincapz/pkg/bincapz/bincapz.go
Line 26 in f029652
... and add something like a
SubPath
orInnerPath
.It's worth noting that the
Report
struct has a map that also contains a filename:Files map[string]FileReport
- it has to be unique, so I think it's fine if we keep the temporary file path there.The ultimate test of this feature is whether or not
--diff
mode works with two directories of archives.The text was updated successfully, but these errors were encountered: