Package Details: dive-git 0.10.0.r2.gc7d121b-1

Git Clone URL: https://aur.archlinux.org/dive-git.git (read-only, click to copy)
Package Base: dive-git
Description: A tool for exploring each layer in a docker image
Upstream URL: https://github.com/wagoodman/dive
Licenses: MIT
Conflicts: dive, dive-bin
Provides: dive, dive-bin
Submitter: m3thodic
Maintainer: m3thodic
Last Packager: m3thodic
Votes: 3
Popularity: 0.001811
First Submitted: 2018-10-29 10:11 (UTC)
Last Updated: 2022-06-02 09:50 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

agowa commented on 2020-02-23 16:54 (UTC)

This package is also missing the build dependency "git" as otherwise the dependencies cannot be fetched and the build will fail.

agowa commented on 2020-02-23 16:13 (UTC) (edited on 2020-02-23 16:16 (UTC) by agowa)

The current PKGBUILD file leaks the build path into the final assembly, this can be circumvented by applying this patch:

diff --git a/PKGBUILD b/PKGBUILD
index df7ae13..a0de3f8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -37,10 +37,11 @@ build() {
        mkdir -p build

        export GOPATH="${srcdir}/go"
-       go build -ldflags "-s -w" \
-               -gcflags="all=-trimpath=${GOPATH}/src" \
-               -asmflags="all=-trimpath=${GOPATH}/src" \
+       go build -trimpath -ldflags "-s -w" \
                -o build/dive
+
+        # fix missing write permissions on go package directories (for cleanup)
+        chmod -R --preserve-root --quiet u+w "$srcdir/go/pkg/mod/"
 }

 package() {

I don't know what side effects this change has, but doing strings ./pkg/dive-git/usr/bin/dive | grep $PWD does no longer reveal any results and it still works.

marcelhuber commented on 2019-11-21 08:29 (UTC) (edited on 2019-11-21 08:30 (UTC) by marcelhuber)

Would you mind adding the following two lines to the PKGBUILD as it would simplify my workflow of automatically building/updating/cleaning. Unfortunately it seems that go removes write permissions on package directories which makes it impossible to clean them without modifying permissions.

@ PKGBUILD:44 @ build() {
        -gcflags="all=-trimpath=${GOPATH}/src" \
        -asmflags="all=-trimpath=${GOPATH}/src" \
        -o build/dive
+   # fix missing write permissions on go package directories (for cleanup)
+   chmod -R --preserve-root --quiet u+w "$srcdir/go/pkg/mod/"
 }

agowa commented on 2019-07-08 07:24 (UTC)

Currently the build is failing for me with this error:

# github.com/wagoodman/dive/image
image/docker_image.go:92:46: cannot use clientOpts (type []func(*client.Client) error) as type []client.Opt in argument to client.NewClientWithOpts
==> ERROR: A failure occurred in prepare().
    Aborting...

m3thodic commented on 2018-12-03 13:57 (UTC)

@svalo done, thanks for the heads up!

svalo commented on 2018-12-03 13:34 (UTC)

Hi, thanks for the package. I noticed that the package does not conflict with dive wich provides the same binary and so issues arise when trying to switch from release to developement. May I ask to update the PKGBUILD? I'm asking the maintainer of dive to to the same.