Package Details: docker-machine-driver-vmware 0.1.5-4

Git Clone URL: https://aur.archlinux.org/docker-machine-driver-vmware.git (read-only, click to copy)
Package Base: docker-machine-driver-vmware
Description: Create Docker machines locally on VMware Fusion and Workstation.
Upstream URL: https://github.com/machine-drivers/docker-machine-driver-vmware
Licenses: Apache
Submitter: arth
Maintainer: None
Last Packager: arth
Votes: 0
Popularity: 0.000000
First Submitted: 2021-01-09 18:19 (UTC)
Last Updated: 2022-01-24 11:05 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

arth commented on 2022-01-24 11:10 (UTC)

Changed to download package from git. better than clone repo.

arth commented on 2022-01-24 09:54 (UTC)

Thanks nomuken, done.

nomuken commented on 2022-01-23 00:46 (UTC)

Hi, I occured error on makepkg on build.

➤ makepkg
==> Making package: docker-machine-driver-vmware 0.1.5-1 (Sun 23 Jan 2022 09:33:57 AM JST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
==> Extracting sources...
==> Starting build()...
go: downloading github.com/machine-drivers/docker-machine-driver-vmware v0.1.5
go: github.com/machine-drivers/docker-machine-driver-vmware upgrade => v0.1.5
go: downloading github.com/docker/machine v0.16.2
go: downloading golang.org/x/crypto v0.0.0-20190103213133-ff983b9c42bc
go: downloading golang.org/x/sys v0.0.0-20190529164535-6a60838ec259
go: downloading github.com/docker/docker v17.12.0-ce-rc1.0.20190115220918-5ec31380a5d3+incompatible
go: downloading github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78
go: downloading github.com/sirupsen/logrus v1.3.0
go: downloading github.com/konsorten/go-windows-terminal-sequences v1.0.1
/home/nomuken/.cache/yay/docker-machine-driver-vmware/PKGBUILD: line 19: cd: /home/nomuken/.cache/yay/docker-machine-driver-vmware/src/docker-machine-driver-vmware-0.1.5/src/github.com/machine-drivers/docker-machine-driver-vmware: No such file or directory
==> ERROR: A failure occurred in build().
    Aborting...

I think it is affected go get behavor changing on >=go1.16. I have created a PKGBUILD for the new changes below.

pkgname=docker-machine-driver-vmware
pkgver=0.1.5
pkgrel=1
pkgdesc='Create Docker machines locally on VMware Fusion and Workstation.'
arch=('x86_64')
url='https://github.com/machine-drivers/docker-machine-driver-vmware'
license=('Apache')
makedepends=('go'
             'git')
source=("git+$url#tag=v${pkgver}")
sha256sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --tags | sed 's/^v//;s/-/+/g'
}

build() {
  cd $pkgname

  # refs: Go package guidelines - https://wiki.archlinux.org/title/Go_package_guidelines
  export CGO_CPPFLAGS="${CPPFLAGS}"
  export CGO_CFLAGS="${CFLAGS}"
  export CGO_CXXFLAGS="${CXXFLAGS}"
  export CGO_LDFLAGS="${LDFLAGS}"
  export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"

  export VERSION=$pkgver

  make
}

package() {
  install -Dm 755 "${pkgname}/out/docker-machine-driver-vmware" "${pkgdir}/usr/bin/docker-machine-driver-vmware"
}