shithub: mycel

Download patch

ref: 0c7f8a96e75bae3529407d210ce73e269f7ff885
parent: 4e15a670c166c11b3eb19a1ad6316c789b26513e
author: Philip Silva <philip.silva@protonmail.com>
date: Sat Apr 9 13:07:44 EDT 2022

Go 1.18

--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
 module github.com/psilva261/opossum
 
-go 1.17
+go 1.18
 
 replace 9fans.net/go v0.0.0-00010101000000-000000000000 => github.com/psilva261/go v0.0.0-20210805155101-6b9925e0d807
 
--- a/package.rc
+++ b/package.rc
@@ -3,6 +3,7 @@
 version=`{date -i} ^ '-' ^ `{cat .git/fs/branch/heads/master/hash | read -c 6}
 tarball64=`{pwd} ^ '/packages/' ^ $name64 ^ '-' ^ $version ^ '.tgz'
 tarball32=`{pwd} ^ '/packages/' ^ $name32 ^ '-' ^ $version ^ '.tgz'
+a='-buildvcs=false'
 
 fn build {
 	tarball=$1
@@ -16,10 +17,10 @@
 
 	echo Compiling $GOARCH...
 	cd cmd/opossum
-	go build -ldflags '-s -w' -o $name
+	go build $a -ldflags '-s -w' -o $name
 	cd ../..
 	cd ../gojafs/cmd/gojafs
-	go build -ldflags '-s -w' -o gojafs
+	go build $a -ldflags '-s -w' -o gojafs
 	cd ../../../opossum
 	mv cmd/opossum/$name ../gojafs/cmd/gojafs/gojafs ./$name/
 	cp README.md ./$name/
@@ -30,8 +31,8 @@
 }
 
 echo Testing...
-go vet ./...
-go test -cover ./...
+go vet $a ./...
+go test $a -cover ./...
 
 build $tarball64 $name64 amd64
 build $tarball32 $name32 386