Commit Graph

11 Commits

Author SHA1 Message Date
Brad Fitzpatrick fc64ec92e5 .github/workflows: run tests on the right branch
I copy/paste-d from another repo earlier and didn't realize
this repo uses 'master' as its main branch.

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2024-01-13 17:12:42 -08:00
Brad Fitzpatrick bc9fbcd89e chip away at some staticcheck warnings
Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2024-01-13 15:57:55 -08:00
Brad Fitzpatrick 09cf7e948b go.mod: remove old replaces, update deps, use Go 1.21
This also makes Windows pass tests again (fixed in Go 1.20:
https://github.com/golang/go/issues/51007)

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2023-12-30 16:06:52 -08:00
Brad Fitzpatrick b5823a65b9 pkg/deploy/gce: remove GCE deploy support
We used to have a web-based Perkeep launcher at perkeep.org/launch
that created a GCE-based Perkeep instance for users, where they pay
Google for compute time. (One of those "one click deploy" template things)

Unfortunately, Google broke their APIs for doing the third party VM
creations and we disabled it some years ago. But the code remains. And
now, updating it again, we find that they've broken it again:

   Error: pkg/deploy/gce/deploy.go:358:4: servicemanagement.NewServicesService(s).Enable undefined (type *servicemanagement.ServicesService has no field or method Enable)

It's not worth fighting Google's API breakages. Just remove the GCE
launcher support as it's been unused for years.

We can always resurrect this code from git if really needed. But a
Digital Ocean or Fly launcher would probably be much easier.

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2023-12-30 12:47:01 -08:00
Brad Fitzpatrick f704514cb0 all: bump required Go version from Go 1.16 to Go 1.19
(Taking over #1632)

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2022-12-31 22:45:40 -08:00
Tamás Gulácsi 8df8a3657d
staticcheck: Use time.Since, time.Until
checks S1012,S1024

Use global staticcheck.conf
2022-03-13 16:30:36 -04:00
Alexandre Viau 0f53db21f7
staticcheck: install with go.mod (#1568) 2021-09-04 19:57:39 -04:00
Tamás Gulácsi 9af293cf84
Add staticcheck
Only U1000 (unused) yet
2021-08-10 07:37:58 +02:00
Alexandre Viau dd996d05f5
doc: document all environement variables (#1383)
envvardoc: repair the script so that it does not fail on very long
lines.

envvardoc: look for env vars with the `PERKEEP` prefix too.

envvardoc: adapt the `docVar` regex to the markdown format.

envvardoc: also look for vars in internal/.

CI: run envvardoc so that we notice when we add new undocumented
environement variables.

doc: List all remaining undocumented env variables. This "shitlist"
gives us a green build in the CI and allows us to ensure all new
environment variables are documented in the future.

doc: Link to the environment variables page.
2021-07-29 14:22:27 -04:00
Alexandre Viau 8171ea5b51
go 1.15 -> 1.16 (#1397) 2021-07-28 23:31:22 -04:00
Alexandre Viau fb961cf310
make codebase go-vet-clean (#1379)
Co-authored-by: Bob Glickstein <bobg@emphatic.com>
2021-07-26 21:19:53 -04:00