small fixes
add missing preremove file v2 fix goreleaser file use relative import goreleaser fix secretstream dependency
This commit is contained in:
parent
457ea0be38
commit
73415e54c6
|
@ -2,13 +2,13 @@ before:
|
|||
hooks:
|
||||
- go mod tidy
|
||||
# refreshes the tailwind css
|
||||
#- go generate ./...
|
||||
- go generate ./...
|
||||
|
||||
builds:
|
||||
- env:
|
||||
# needed for sqlite
|
||||
- CGO_ENABLED=1
|
||||
main: github.com/ssb-ngi-pointer/go-ssb-room/cmd/server
|
||||
main: ./cmd/server
|
||||
binary: go-ssb-room
|
||||
goos:
|
||||
- linux
|
||||
|
@ -16,16 +16,11 @@ builds:
|
|||
- amd64
|
||||
|
||||
gomod:
|
||||
# Proxy a module from proxy.golang.org, making the builds verifiable.
|
||||
# This will only be effective if running against a tag. Snapshots will ignore this setting.
|
||||
proxy: true
|
||||
|
||||
# If proxy is true, use these environment variables when running `go mod` commands (namely, `go mod tidy`).
|
||||
# Defaults to `os.Environ()`.
|
||||
# sum.golang.org somehow doesn't handle replace as expected. TODO: file issue
|
||||
proxy: false
|
||||
env:
|
||||
- GOPROXY=https://proxy.golang.org,direct
|
||||
- GOSUMDB=sum.golang.org
|
||||
- GOPRIVATE=example.com/blah
|
||||
|
||||
# for .deb packages
|
||||
# see: https://goreleaser.com/customization/nfpm/
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
systemctl stop go-ssb-room
|
||||
systemctl disable go-ssb-room
|
||||
# TODO: we might want to have a proper config file so users dont need to tweak this file, then we can also remove and upgrade it properly
|
||||
# rm /etc/systemd/system/go-ssb-room.service
|
||||
# systemctl daemon-reload
|
||||
systemctl reset-failed
|
|
@ -85,7 +85,7 @@ import (
|
|||
"net/http"
|
||||
"testing"
|
||||
|
||||
"github.com/ssb-ngi-pointer/go-ssb-room/roomdb"
|
||||
"github.com/ssb-ngi-pointer/go-ssb-room/v2/roomdb"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
|
4
go.mod
4
go.mod
|
@ -30,10 +30,10 @@ require (
|
|||
go.cryptoscope.co/muxrpc/v2 v2.0.6
|
||||
go.cryptoscope.co/netwrap v0.1.1
|
||||
go.cryptoscope.co/nocomment v0.0.0-20210520094614-fb744e81f810
|
||||
go.cryptoscope.co/secretstream v1.2.3
|
||||
go.cryptoscope.co/secretstream v1.2.8
|
||||
go.mindeco.de v1.12.0
|
||||
go.mindeco.de/ssb-refs v0.2.0
|
||||
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad
|
||||
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a
|
||||
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
|
||||
golang.org/x/text v0.3.5
|
||||
golang.org/x/tools v0.1.1
|
||||
|
|
4
go.sum
4
go.sum
|
@ -265,8 +265,8 @@ go.cryptoscope.co/netwrap v0.1.1 h1:JLzzGKEvrUrkKzu3iM0DhpHmt+L/gYqmpcf1lJMUyFs=
|
|||
go.cryptoscope.co/netwrap v0.1.1/go.mod h1:7zcYswCa4CT+ct54e9uH9+IIbYYETEMHKDNpzl8Ukew=
|
||||
go.cryptoscope.co/nocomment v0.0.0-20210520094614-fb744e81f810 h1:Sa7Q5X/La6bVTNT8Vcnt9GIGuOFOEFmjY3UNiwPErQk=
|
||||
go.cryptoscope.co/nocomment v0.0.0-20210520094614-fb744e81f810/go.mod h1:SJ9qQwHw1S7F2RsE9Ez9RmBhGpIdAphG1xGnI0rdKUI=
|
||||
go.cryptoscope.co/secretstream v1.2.3 h1:BebIzU8CWKE96nXf9Pt1kmA1huLB24jKjSwo2G4PfLo=
|
||||
go.cryptoscope.co/secretstream v1.2.3/go.mod h1:9Dv6rDawfP3/Yme0hQ4mK3VC5TC9d8tirQpzq/uAJ9w=
|
||||
go.cryptoscope.co/secretstream v1.2.8 h1:M/2EYQfj2A97oe44jGWFDMxgu9NsRnjRSTnz1WPWTnA=
|
||||
go.cryptoscope.co/secretstream v1.2.8/go.mod h1:OjHU/Io8LYyBxv1ehWohsFyyz4fVcKGozAzLoj6il50=
|
||||
go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
|
||||
go.mindeco.de v1.12.0 h1:K5FHILjJlD/U1HJMs8Y9ZLwdfG4dPEsxw+e+eqg1wKc=
|
||||
go.mindeco.de v1.12.0/go.mod h1:dZty08izAk/rSX8wSLen4gMR4WDPYmA6vUTE0QtepHA=
|
||||
|
|
Loading…
Reference in New Issue