Commit Graph

19 Commits

Author SHA1 Message Date
Alexandre Viau 0f53db21f7
staticcheck: install with go.mod (#1568) 2021-09-04 19:57:39 -04:00
Tamás Gulácsi b0126ed7cf
buildsystem: update dependencies (#1394)
* Update goleveldb to v1.0.0

* Update goleveldb to 64b5b1c739545ed311fb9d9924d19d188fabdc83

- fix data race (758128399b1df3a87e92df6c26c1d2063da8fabe)
- optimizations from bytes.Buffer (42cf80bcefdf184caead3785a11b06fe6dfe9649)
- fsync after creating new manifest (eb135432c5aa4c841c91f3fdc871f07a94aa5a44)

* Update all dependencies.

Keep google.golang.org/api on v0.42.0 as that's the latest not borking
servicemanagement/v1 APIService.Enable.

* Pin bazil.org to latest version that supports macOS

Support has been removed in mid-2018 - see
https://github.com/bazil/fuse/issues/224
for details.

* pkg/blobserver/sftp: Make it pass on Windows

Translate paths with filepath.ToSlash

* Remove macos test cache

* go mod tidy

Remove zembed*.go as pkg/fileembed is history

* Remove caching in tests-linux

Co-authored-by: Tamás Gulácsi <tamas@gulacsi.eu>
2021-07-31 18:54:25 -04:00
Alexandre Viau 8171ea5b51
go 1.15 -> 1.16 (#1397) 2021-07-28 23:31:22 -04:00
aviau 92eaf55b4d b2: document example + point to perkeep/b2 fork
- Add documentation in storage-examples for using Perkeep with b2 as a
  storage backend. The documentation uses the new API terminology:
  AccountID is no longer a thing in the Backblaze web console.

- Replace FiloSottile/b2 by perkeep/b2 where we host a copy of
  clgillis's Pull Request[1]. We can point to the original project
  again as soon as it is merged.

  Note that I haven't updated the vendor directory and it seems that
 `go mod vendor` updates way more things that are also outdated in the
  master branch, so I will leave that as an exercise to whoever has
  commit access :).

Before this Pull Request, launching the b2 storage would error with the
following error message:
```
Error parsing config: Caught panic: error instantiating storage for prefix "/sto-b2/", type "b2": Post "https://api000.backblazeb2.com/b2api/v1/b2_list_buckets": b2 remote error [bad_request]: accountId invalid
```

Now, it seems to work as expected!

1. https://github.com/FiloSottile/b2/pull/8
2021-01-16 23:16:16 -05:00
aviau 602825f334 CI: test on macOS
- Bump go-sqlite3 so that it includes the following fix:
  * https://github.com/mattn/go-sqlite3/pull/734
2021-01-16 23:12:33 -05:00
aviau 7730b62281
Merge branch 'fix-windows' of https://github.com/willnorris/perkeep into willnorris-fix-windows
- Revert the permissions verifications on Windows, we can
  implement it in some other way later.
2021-01-14 11:34:57 -05:00
aviau 5d8a9e87f7
gopherjs -> goplusjs
github.com/gopherjs/gopherjs no longer supports new Go versions and
doing a full perkeep build currently requires go 1.12.

This moves to github.com/goplusjs/gopherjs which supports new Go
version. Building perkeep no longer requires go 1.12.

- Support building webui with just go 1.15
- Before this PR, reactGen was built from the vendor directory.
  Now, it is built with gomodules. We can't run it with `go run`
  because it breaks myitcv.io/gogenerate which they use to determine
  what file to compile.
- go.mod: require go 1.15
- goplusjs/gopherjs is built and ran with gomodules. We run it
  with go run github.com/goplusjs/gopherjs
- Add test-tidy workflow to ensure that go.mod can't drift.
- We use go run -mod=readonly so packages are not sneakily updated.
  Any update in go.mod should be voluntary.
2021-01-13 21:55:21 -05:00
Niklas Merz 4b2ae52842 go.mod: update "x/crypto" to support latest acme API
Let's encrypt doesn't work with the old acme API anymore. The latest version of "x/crypto" fixes that.

Error messages:
acme/autocert: missing certificate
403 urn:acme:error:unauthorized: Error creating new authz :: Validations for new domains are disabled in the V1 API (https://community.letsencrypt.org/t/end-of-life-plan-for-acmev1/88430)

See:https://go-review.googlesource.com/c/crypto/+/200638
2020-12-05 19:21:43 -08:00
Will Norris 73f29186a0 update dependencies
update github.com/bradfitz/latlong in order to include
https://github.com/bradfitz/latlong/commit/afb97c1f9 which updates the
import path of freetype-go.  The old path no longer exists and was
causing problems with go mod.

update github.com/pkg/sftp to include
https://github.com/pkg/sftp/pull/382 which resolves CI test failures for
Windows.
2020-09-24 16:31:39 -07:00
Brad Fitzpatrick c9f78d02ad Disable the Cloud Launcher. Too expensive for how underused (3 people?) it is. 2019-07-29 11:15:21 -07:00
Ian Denhardt 8e630505c8 pkg/sorted: add read transactions.
This is in relation to #580; we will need something like it to hook
Bleve up to the index. Currently only the SQL backends are implemented;
the rest is still TODO.

This also updates the version of the postgres library that we're using;
the old one didn't support setting the isolation level in TxOptions.

Change-Id: I14fdf74832e088d164b757417bfbb500a752d216
2019-06-24 10:06:28 -07:00
mpl 9417938aa3 vendor: update a bunch of dependencies, and clean some things up
This change:

1) makes perkeep.org/server/perkeepd/ui/goui a module on its own, so that it
gets ignored by go mod with respect to perkeep.org. Because there's no reason it
should appear in perkeep.org/go.mod, as it is only used by gopherjs to rebuild
the web UI code.
2) updates a few of our dependencies to keep up with upstream changes (go get
-u, go mod tidy, go mod vendor).
3) readds manually (since go mod vendor removes them)
vendor/github.com/gopherjs/gopherjs (and its deps) as well as vendor/myitcv.io
because they are needed when one wants to rebuild the web UI.

As a result I think we can now drop dep, so it is done in this change as
well.

Change-Id: I155819163e15e214a6ba44bab2c19ae171d83d1b
2019-05-30 02:03:30 +02:00
mpl f127d47ec2 make.go: bump Go version to Go 1.12
And vendor in a compatible GopherJS version
(bd77b112433e999447bf4bc599e36214ba494a99).

In addition, since GopherJS:

1) Still does not support Go modules for now
2) Seems to be dying (https://github.com/gopherjs/gopherjs/issues/894)
3) Has been hard to maintain for Perkeep

we decided to gradually move away from it, and to remove it from go.mod. As a
result, in this PR, we repurposed the skipGopherJS option into buildWebUI,
which, in combination with the GO111MODULE env value gives the 4 following
possible behaviours (GO111MODULE=auto omitted on purpose).

1) GO111MODULE=off, -buildWebUI=true:
-old behaviour, i.e. use vendored in gopherjs to rebuild (gophejs itself and then)
the web UI
2) GO111MODULE=off, -buildWebUI=false:
-fetch the JS code for the web UI and the publisher from the Google Cloud bucket
of the Perkeep project. That code was previously built by the scenario 1) and
uploaded there.
3) GO111MODULE=on, -buildWebUI=false:
-same as 2)
4) GO111MODULE=on, -buildWebUI=true:
-forces GO111MODULE=off behind the scenes when rebuilding GopherJS and the
web UI code with it.

Finally, we also modified the checks regarding where we are (i.e.
whether in $GOPATH/src/perkeep.org). Because even though go modules will
in theory allow to build from anywhere, since we disable modules when
the Web UI is rebuilt, we can therefore only do it from within the
GOPATH.

Change-Id: Iee66d7ee882c6d408b5996fd26178bcd7426e3f8
2019-04-28 23:57:14 +02:00
mpl 2a85cb7142 internal/rollsum: replace with go4.org/rollsum
Fixes #1253

Change-Id: I64aac5739a18d2e19494881dcceff9d43355fac2
2019-02-23 01:48:18 +01:00
mpl af4d166090 go.mod: update garyburd/go-oauth
to rev bca2e7f09a17

Fixes #1240

Change-Id: I59322c2196c8491c70ee0bcb7751ee01ab257ec1
2018-12-28 18:56:40 +01:00
mpl bcb0ec628e vendor: bump github.com/gopherjs/gopherjs
To rev 0fee806ad4970060e8f97d37a50fc58572426195, to support Go 1.11.1

Fixes #1227

Change-Id: I8cbb24ff60b3407bec3fad0d660957e36d998324
2018-10-07 04:36:24 +02:00
mpl 3f24764ea9 make.go: update to Go 1.11 as required version
Wich also means updating github.com/gopherjs/gopherjs to
rev 0210a2f0f73c96103378b0b935f39868e5731809

Fixes #1211

Change-Id: I9ae580bffda523237d471942f39ae157ff4bd303
2018-09-14 13:01:08 +00:00
mpl 246c1ff454 go.mod: update github.com/go-sql-driver/mysql to the version we are vendoring
Which is 99ff426eb706cffe92ff3d058e168b278cabf7c7, as per
commit e007f66b76

Change-Id: I0fe16eb39dfda10d86e11321f27b8739cc59a401
2018-08-17 03:10:55 +02:00
Brad Fitzpatrick f416012e19 Add Go 1.11 go.mod and go.sum module files.
Updates #1066

Change-Id: Ic33f637339de4f7a8eaac8d36bbbdb059b77fc3b
2018-08-07 13:54:26 -07:00