Commit Graph

7237 Commits

Author SHA1 Message Date
Mathieu Lonjaret cb12c9ca72 Merge "Fix some bitrot & grammar in CONTRIBUTING.md" 2019-04-30 21:57:52 +00:00
Ian Denhardt 64efc6e21b Fix some bitrot & grammar in CONTRIBUTING.md
Specifically:

* Update references to `camtool`, which has been renamed to just `pk`.
* Fix a couple of nearby grammar mistakes.

Change-Id: I60af05879c09d59f7136466dfc1f88d95e4eb919
2019-04-30 13:09:35 -04:00
Mathieu Lonjaret b4c7be3210 Merge "pkg/test: fix usage of make.go" 2019-04-30 11:59:53 +00:00
mpl 0ce51e6618 pkg/test: fix usage of make.go
Because --skip_gopherjs does not exist anymore

Change-Id: I537f9bc2efacd00fc09a7d3e3d72be85154e8684
2019-04-30 13:58:26 +02:00
mpl d728a6abce Dockerfile: bump Go to 1.12.4
Change-Id: I2a9a9edad1b7a991f8cb02c77b9114e15e4a3ebe
2019-04-30 13:43:56 +02:00
mpl 9ed22c3f39 make.go: fix paths for windows
And fix initial stat argument

Change-Id: I35a0aeb0756e283462437beee18a31d860b96dec
2019-04-30 10:13:43 +02:00
mpl 84771358d3 Travis: bump Go to 1.12
Change-Id: Icfcd729420822bb5cb57a3462baf24f5e322be5c
2019-04-30 09:53:28 +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
Brad Fitzpatrick 7c03aef51f internal/magic: add mkv as a known video extension
Change-Id: Ifb868a26e7f1f6a9a5603b9ffb791282a19a34b1
2019-03-28 15:13:02 -07:00
Mathieu Lonjaret d7cbec361c Merge "website: record version with buildinfo" 2019-03-28 12:51:29 +00:00
mpl 52e4df095d website: record version with buildinfo
So now when we get the e-mail on a website restart, we'll actually
know what version of it is running.

Also,
make.go: skip gopherjs checks when we only build the website or
camnetdns.

Change-Id: I3f6985afc8931fe478cc4f7caba2b1fc31bc815b
2019-03-27 23:09:54 +01:00
U-GINA-PC\gina 8f087578df Update documented required version of go to 1.11
To bring it inline with changes from 3f24764.

Change-Id: If33740ae9fe3c539196b399b80267c0dd998640d
2019-03-26 09:50:27 -07:00
Brad Fitzpatrick 9bafcb9592 pkg/client: remove old debug print
Change-Id: I984b537f71a31eeb184a28713e27a79fdfaa69b6
2019-03-25 15:36:39 -07:00
mpl acb8676d2d vendor/go4.org/rollsum: actually create the package dir
I mistakenly added the files directly in vendor/go4.org instead of
vendor/go4.org/rollsum in 2a85cb7142

Neither running 'go run make.go', nor running 'go test' (in e.g.
pkg/schema) caught that the package was missing in vendor, because i
happened to also have the package in my GOPATH.

Iirc, before modules existed it would have been enough to run 'go run
make.go' to catch that, whereas now 'go run make.go' ran happily for me,
even with GO111MODULE=off, which is somewhat annoying.

Change-Id: I97805c924700fa159a14fd33014dabc423a4fc60
2019-02-25 23:21:22 +01:00
Mathieu Lonjaret 78362dc1c0 Merge "pk-web: enable TLS-ALPN-01 for Lets Encrypt" 2019-02-24 16:47:59 +00:00
mpl b46cc46d5d pk-web: enable TLS-ALPN-01 for Lets Encrypt
I'm getting reminders from Let's Encrypt that perkeep.org is using a
cert obtained with TLS-SNI-01, which is now deprecated.

I think this change would be enough to switch to TLS-ALPN-01.

Change tested on the staging instance at https://staging.camlistore.net

Change-Id: I19dc51171228e6598846a778aadb8497d3406446
2019-02-23 20:00:10 +01:00
mpl 2a85cb7142 internal/rollsum: replace with go4.org/rollsum
Fixes #1253

Change-Id: I64aac5739a18d2e19494881dcceff9d43355fac2
2019-02-23 01:48:18 +01:00
Brad Fitzpatrick 0683145d61 website: remove opencollective links
Per https://groups.google.com/forum/#!topic/perkeep/Kqvh2dJVmoo

Change-Id: I5ffbf4b323613f9fc83c2082ee6512df64300f4f
2019-02-12 09:11:48 -08:00
mpl ffc9707902 pk-web: do not panic on empty slice of hashes
Fixes #1247

Change-Id: Ia8dcce72c889a72be736ef8d50871516845d52e2
2019-02-01 19:10:39 +01:00
mpl eb547718cb Dockerfile: update to Go 1.11.4
Change-Id: Icbafed8a5f333ccf9687692af05435530c46ab69
2018-12-31 19:21:50 +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
Mathieu Lonjaret 1008e11420 Merge "doc/synology: update latest tarballs" 2018-12-24 10:45:48 +00:00
Mathieu Lonjaret aa7ab23772 Merge "pkg/importer: add "instapaper" importer for Instapaper service" 2018-12-03 15:07:30 +00:00
Angel 3dbb01138f pkg/importer: add "instapaper" importer for Instapaper service
A working importer for the Instapaper service. The importer imports
bookmarks, full text articles, and highlights. A blob item handler for
Instapaper highlight permanodes is included to show summarized highlight
content from the server UI.

Also, this CL updates github.com/garyburd.com/go-auth to rev
bca2e7f09a178fd36b034107a00e2323bca6a82e in order to get support for
XAuth requests.

Fixes #1208

Change-Id: I72e0c40b245c7eec4a44bb475fcaa96a0ee9a1c5
2018-11-26 07:57:08 -05:00
mpl 5d12c9aa0d devcam: create hooks dir if it does not exist
Which can apparently happen with the way gitlab clones our repo.

Change-Id: I895c28647fd211ef7beea2e20ae51b866467f81c
2018-11-22 02:22:09 +01:00
Paul Lindner d364c30ba8 all: add notifications for travis so they appear in the irc channel
Change-Id: I09a1d258c4e8d6bcb6de1352299eac49bcedd2e1
2018-10-31 14:20:39 -07:00
mpl dc4c57880c server/perkeepd/ui: use TokenOrNone in selectall
Omission from 8130bd61ef

Change-Id: Iecf31de608283f12d48ef150d42c7cf55c055d16
2018-10-07 19:16:33 +02: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
Mathieu Lonjaret ae7698101e Merge "server/perkeepd/ui/goui: suppress basic auth on OmitAuthToken" 2018-09-27 22:59:36 +00:00
mpl 8130bd61ef server/perkeepd/ui/goui: suppress basic auth on OmitAuthToken
The javascript code was taking into account the OmitAuthToken signal
that there should be no auth, but it hadn't been done in the gopherjs
code yet as well.

Fixes #1221

Change-Id: I3eda0cc12c99664739d6073cc1aeba1aeed8a88a
2018-09-26 20:00:36 +02:00
mpl 69a68e7e91 misc/docker/go: update to Go 1.11
Change-Id: Ia4c4826a572e3317460d6a71af19e9885fe72926
2018-09-26 02:52:53 +02:00
mpl e6dd735c20 cmd/pk: strip knownKeys from dumpconfig
Fixes #1204

Change-Id: If463b84d8250ed1b0f48e6ed24b7d37843f082cb
2018-09-26 02:00:19 +02:00
mpl 2453859515 server/perkeepd/ui: actually use defaults for dialog size
Change-Id: I69a3406db8fd71618b1b8feba207707aef726db9
2018-09-25 20:02:38 +02:00
mpl 03a10b5c34 cmd/pk-mount: make -version flag actually work
Fixes #1219

Change-Id: I3eb81a3f3fdd9dbaabd3510e8d9d80e5b0ef4b8e
2018-09-24 20:12:12 +02:00
Mathieu Lonjaret d109c3b2c7 Merge "clients/android: bump targetSdkVersion to 26" 2018-09-24 16:03:30 +00:00
mpl 965aeaca33 clients/android: bump targetSdkVersion to 26
Because it is mandatory as of nov 2018:
https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html

As the default Notification.Builder constructor is deprecated in API 26,
this change also adds the use of the new constructor, which requires a
notification channel Id.

Note: since the users are now in full-control of the notifications,
they can now choose to completely block the auto-upload notification
channel. Given that the main goal of the notification was to keep the
app in memory in order for auto-upload to work, one could expect that
blocking the channel would defeat the notification's purpose. However,
as far as I could test, auto-uploading seems to still be working even
after disabling the channel, and letting the activity die (tip: in
devoloper options, one can tick "Don't keep activities"). In fact,
Perkeep Uploader still always runs as a service.

Also build pk-put shipped in the app with Go 1.11.

Fixes #1202

Change-Id: I8f98e0df742915cb504b6c1cfaa42ca6dc7b6189
2018-09-22 02:40:40 +02:00
Mathieu Lonjaret 6a2eadf481 Merge "Dockerfile: use Go 1.11" 2018-09-20 23:36:04 +00:00
mpl b0901046fe Dockerfile: use Go 1.11
Change-Id: Ia42c6aec924436f8a1fb5a226fb204f043f4e06b
2018-09-21 01:32:26 +02:00
mpl 44db6d9b98 server/perkeepd/ui: treat ref: as special case only with full blobRef
The ref: predicate was treated as a special case, to make it correspond
to navigating to a "blobRef URL", e.g.
http://localhost:3179/ui/sha224-b6a88695e3a9178d45fdfb1fa888939d5adc090f866aaa1d7b5ec3a5

However, we should not do that when the query is only for the prefix of
a blobRef, e.g. "ref:sha224-b6a88695".
This CL therefore adds a check to make sure we're in the presence of a
full blobRef before navigating to the special case.

Fixes #1119

Change-Id: Ib92b43adbb2316c1607d617eb03de132c38de85f
2018-09-19 03:01:02 +02:00
mpl ca7f2e57e3 dev/devcam: use libsqlite3 tag when -sqlite=true
In 5894af5196 we chose not to vendor
sqlite3-binding.c and sqlite3-binding.h in, because we rely on the
system's libsqlite3 instead. But we never told devcam test to use the
corresponding necessary "libsqlite3" tag, which is now done in this CL.

Also, comment properly about it in .gitignore.

And make Travis CI use the devcam installed in $GOPATH/bin, instead of
specifically building one in tree.

Change-Id: I4b7bb1305669037f84063c7cf6c7f356c99f3edc
2018-09-14 22:16:23 +02:00
Mathieu Lonjaret 016d0964ee Merge "make.go: update to Go 1.11 as required version" 2018-09-14 14:44:52 +00: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 b26a440e4b pkg/server: fix camlistore.org refs on help page
Change-Id: I11f1b362460f411939a4608ddb83a4027cb12e7e
2018-09-14 03:21:03 +02:00
Mathieu Lonjaret ad6dae391e Merge "clients/osx: use Keepy for all app icons" 2018-09-06 18:59:08 +00:00
Sergio Pantoja fd2a64ff2d clients/osx: use Keepy for all app icons
Updates #1147

Change-Id: Ie76a2b101b3bd155f0ab318c85e7026531f5ab56
2018-09-06 01:04:57 -04:00
Mathieu Lonjaret 918152c1f1 Merge "doc: add files vs permanodes explanation" 2018-09-05 15:32:33 +00:00
Sergio Pantoja 1bc914b368 clients/osx: update link to new Google Group
Updates #981

Change-Id: I78f52c28b8ff2426867af510b083d5fa724decc3
2018-09-03 00:07:05 -04:00
mpl 80fbcfc4b7 travis CI: run tests with sqlite enabled
Fixes #1085

Change-Id: I7f961b67c44c860089cdde8da9baf9649b5bbf76
2018-08-29 18:20:48 +02:00
mpl c243487bdb pkg/index/sqlite: fix tests
Long broken since the sha224 switch.

Updates #1085

Change-Id: I2dda3dac6bd3c8006be0974bdc9be402e25b7429
2018-08-29 03:39:05 +02:00
mpl edfa4d0d28 website: document raw search operator
And sort operators.

Change-Id: I0f8fb24db15421ea819bfa3381d574a0b213cef5
2018-08-28 19:49:35 +02:00