-
Notifications
You must be signed in to change notification settings - Fork 29
Build problem on OpenBSD #178
Comments
Looks like diff --git a/Makefile b/Makefile
index c26b9fd..67ee833 100644
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@ dependencies:
@$(shell \
cd $(GOVENDOR) ; \
rm -rf src ; \
- find . -mindepth 2 -maxdepth 2 -path ./src -prune -o -type d -print | \
+ find . -mindepth 2 -maxdepth 2 -path ./src -prune -o ! -path . -type d -print | \
sed -e 's/.\///' | \
xargs -I{} sh -c ' \
mkdir -p "src/`dirname {}`" ; \
@bndw what do you think about (finally) removing the Makefile-hack now that Go modules are a thing? |
I don't think BSD make supports the
|
@leonklingele I'd almost forgotten, that's a great idea. |
Regarding Go modules-- @leonklingele correct me if I'm wrong but would this mean we cannot support < Go 1.11? |
With Go modules (and without the Makefile hack), the project can only be build from |
If using go modules still requires the project to live in the At this stage I'd be OK with removing the Makefile hack and updating the README with a requirement to clone into the |
@drduh I'm working on a repo, just got an environment setup
|
Aside from the
|
See my updated comment above:
@bndw can you please check if the following patch fixes the issue? diff --git a/vendor/github.com/marcsauter/single/single_unix.go b/vendor/github.com/marcsauter/single/single_unix.go
index 1f9990d..f716eb6 100644
--- a/vendor/github.com/marcsauter/single/single_unix.go
+++ b/vendor/github.com/marcsauter/single/single_unix.go
@@ -1,4 +1,4 @@
-// +build linux solaris darwin freebsd
+// +build linux solaris darwin freebsd openbsd netbsd
package single
There's an open issue @ upstream: pkg/term#25. A fix is available too: pkg/term#30. |
@leonklingele applied the patch diff --git a/vendor/github.com/marcsauter/single/single_unix.go b/vendor/github.com/marcsauter/single/single_unix.go
index 1f9990d..f716eb6 100644
--- a/vendor/github.com/marcsauter/single/single_unix.go
+++ b/vendor/github.com/marcsauter/single/single_unix.go
@@ -1,4 +1,4 @@
-// +build linux solaris darwin freebsd
+// +build linux solaris darwin freebsd openbsd
package single And ran the build
|
pkg/term#30 has been merged. A fix for github.com/marcsauter/single is available here: marcsauter/single#11. |
Once that single PR lands, I'll give it another spin 🤞 |
@bndw apply this patch: diff --git a/Gopkg.toml b/Gopkg.toml
index 3010027..cf920e1 100644
--- a/Gopkg.toml
+++ b/Gopkg.toml
@@ -23,7 +23,7 @@
[[constraint]]
name = "github.com/atotto/clipboard"
- revision = "bb272b845f1112e10117e3e45ce39f690c0001ad"
+ version = "v0.1.1"
[[constraint]]
name = "github.com/aws/aws-sdk-go"
@@ -33,13 +33,17 @@
name = "github.com/leonklingele/randomstring"
version = "1.0.0"
+[[constraint]]
+ name = "github.com/marcsauter/single"
+ revision = "f8bf46f26ec011cb275d59dbb51d1fae0a0a18a6"
+
[[constraint]]
name = "github.com/mitchellh/go-homedir"
revision = "b8bc1bf767474819792c23f32d8286a45736f1c6"
[[constraint]]
name = "github.com/pkg/term"
- revision = "b1f72af2d63057363398bec5873d16a98b453312"
+ revision = "93e6c91493094ff99a036fea0040802a1e0a4f69"
[[constraint]]
name = "github.com/spf13/cobra"
Followed by |
@leonklingele confirmed myself on OpenBSD, thanks! 🎉 |
PR that applies the above diff on dependencies: #185 |
|
Looking good on develop 👍 - thanks for the updates! |
Reference for what install could look like with Go modules: https://github.com/gohugoio/hugo#fetch-from-github |
The text was updated successfully, but these errors were encountered: