summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-04-24 19:46:49 +0530
committerAndinus <andinus@nand.sh>2020-04-24 19:46:49 +0530
commita01ce7b96892849d91911a2ef143a08b8e4e57c5 (patch)
tree2a5b7148c34051bfb674c52a40e6e924ab43c6dd
parent14916180447e88eafe09c6a7e8289baacd2194ad (diff)
downloadcetus-a01ce7b96892849d91911a2ef143a08b8e4e57c5.tar.gz
Upgrade to lynx v0.4.0
-rw-r--r--cmd/cetus/main.go (renamed from cmd/cetus/main_openbsd.go)5
-rw-r--r--cmd/cetus/main_other.go7
-rw-r--r--go.mod5
-rw-r--r--go.sum2
4 files changed, 4 insertions, 15 deletions
diff --git a/cmd/cetus/main_openbsd.go b/cmd/cetus/main.go
index 7e19f5b..b8098be 100644
--- a/cmd/cetus/main_openbsd.go
+++ b/cmd/cetus/main.go
@@ -1,11 +1,8 @@
-// +build openbsd
-
 package main
 
 import (
 	"log"
 
-	"golang.org/x/sys/unix"
 	"tildegit.org/andinus/cetus/cache"
 	"tildegit.org/andinus/lynx"
 )
@@ -43,7 +40,7 @@ func unveil() {
 	}
 
 	// Block further unveil calls
-	err = unix.UnveilBlock()
+	err = lynx.UnveilBlock()
 	if err != nil {
 		log.Fatal(err)
 	}
diff --git a/cmd/cetus/main_other.go b/cmd/cetus/main_other.go
deleted file mode 100644
index d39e66f..0000000
--- a/cmd/cetus/main_other.go
+++ /dev/null
@@ -1,7 +0,0 @@
-// +build !openbsd
-
-package main
-
-func main() {
-	app()
-}
diff --git a/go.mod b/go.mod
index 52e6818..cc3f114 100644
--- a/go.mod
+++ b/go.mod
@@ -2,7 +2,4 @@ module tildegit.org/andinus/cetus
 
 go 1.13
 
-require (
-	golang.org/x/sys v0.0.0-20200331124033-c3d80250170d
-	tildegit.org/andinus/lynx v0.1.0
-)
+require tildegit.org/andinus/lynx v0.4.0
diff --git a/go.sum b/go.sum
index 0c63acf..b3f38e8 100644
--- a/go.sum
+++ b/go.sum
@@ -2,3 +2,5 @@ golang.org/x/sys v0.0.0-20200331124033-c3d80250170d h1:nc5K6ox/4lTFbMVSL9WRR81ix
 golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 tildegit.org/andinus/lynx v0.1.0 h1:7YjyF8h7MBGKRgQZT0j0I3uHRPf3mI2GMiDujXVlLS0=
 tildegit.org/andinus/lynx v0.1.0/go.mod h1:/PCNkKwfJ7pb6ziHa76a4gYp1R9S1Ro4ANjQwzSpBIk=
+tildegit.org/andinus/lynx v0.4.0 h1:bAxZLOdWy66+qJ3bDWjkbmJfCWTIOZ8hMGzYt7T7Bxk=
+tildegit.org/andinus/lynx v0.4.0/go.mod h1:/PCNkKwfJ7pb6ziHa76a4gYp1R9S1Ro4ANjQwzSpBIk=