Commit Graph

6617 Commits

Author SHA1 Message Date
Brad Fitzpatrick 504604e22d blob: add Ref.EqualString method
Adds allocation-free way to check if a blob ref is equal to its
stringified form.

For #972 (doesn't fix it, as that bug is about a pending CL)

Change-Id: I49c6dee162698d38bb12314623b1507ee7bb246e
2017-12-26 17:37:00 -08:00
Brad Fitzpatrick 36f351ff50 Merge "pkg/webserver: remove usage of the obsolete runsit package" 2017-12-27 01:13:33 +00:00
Paul Lindner ca067082a3 vendor: remove unused go-spew package
Change-Id: I97d629e23406831ed93ea46634ff030695586a23
2017-12-26 16:11:28 -08:00
Paul Lindner b077a5916e pkg/webserver: remove usage of the obsolete runsit package
The runsit package is obsolete.  Pull the listen code directly into webserver and
remove support for the runsit specific named ports.  Update TODO.

Change-Id: I0d8ea798375d0eb4abea86ed9e6454376233e992
2017-12-26 15:03:59 -08:00
Paul Lindner 6b283519e6 vendor: remove unused gomemcache package
Change-Id: I7cafc05d758e0efe09b7701b346236f92f73ad3c
2017-12-26 01:15:07 -08:00
mpl bedb1d5e37 website: update twitter handle
Change-Id: Ic5c36d565424349bb3396e5a52178bf5fd2b6842
2017-12-22 00:34:33 +01:00
mpl c03615688c website: link blobserver protocol on /doc/ page
Change-Id: I72ffe096dea13242b088b303561c237dca623dcb
2017-12-21 17:37:50 +01:00
Brad Fitzpatrick 8e02a79b5b osutil: add func to report whether the secret-keyring flag is loaded
Then use it in pkg/client and remove the workaround from cmd/pk-devimport.

Change-Id: Iebd380d8c021628ac5e52219d00cfdf8e03f6b7d
2017-12-20 12:53:22 -08:00
Brad Fitzpatrick 393294643b Merge "cmd/pk-devimport: command that runs a local importer" 2017-12-20 20:03:45 +00:00
Brad Fitzpatrick e532defb67 website: emphasize opencollective, add logo
Change-Id: I4f9260ba275e55c9e4427751a70297a302d2c5b1
2017-12-20 10:22:14 -08:00
mpl d90d6c28eb website: add link to open collective page
Change-Id: I863bfa0b8b699a3754e4795ca72dcfb39c43d2c5
2017-12-20 18:32:42 +01:00
mpl 99e71732b9 cmd/pk-devimport: command that runs a local importer
Change-Id: I62e35db0040cda51f2bc5ede4560974e3f3442cc
2017-12-20 17:58:56 +01:00
Paul Lindner d81b001d24 cmd/cammount: add more documentation and examples to help people get started with PerkeepFs
Fixes #789

Change-Id: I9f0d0a8a823902ed2ae1bf83d4a5b58fadac1d7d
2017-12-19 15:32:33 -08:00
Mathieu Lonjaret 574a9311ec Merge "website: first pass of s/Camlistore/Perkeep/ on contents" 2017-12-18 15:47:03 +00:00
mpl cea35f8a40 website: first pass of s/Camlistore/Perkeep/ on contents
A second pass will be needed on the URLs once we have moved all the
repos and such.

Issue #981

Change-Id: Ibb58f4c4f16481da69e811142e8337b826c0d164
2017-12-18 16:46:08 +01:00
Mathieu Lonjaret 403ba82d14 Merge "camweb: enable default contributor name" 2017-12-18 15:17:24 +00:00
Mathieu Lonjaret ee580cd5f5 Merge "pkg/deploy: ignore Domain field from page template" 2017-12-18 15:16:53 +00:00
Brad Fitzpatrick 95e119f16f importer/gphotos: don't return channels in internal API, use foreach funcs
This code previously had methods returning channels. Such APIs are
always error-prone and difficult to use. Switch to a synchronous func
callback pattern instead, with contexts propagated.

Change-Id: Iaa1b91227c0daf4c8562fcba8d27dbcd7ab755c5
2017-12-17 17:43:23 -08:00
Brad Fitzpatrick e996c47bd1 vendor: add golang.org/x/sync
Adds golang.org/x/sync to vendor at fd80eb99c

Change-Id: I4b24acff93f0ace5f2ff0ba3c40e8b4145e1f60d
2017-12-17 14:27:26 -08:00
Brad Fitzpatrick ac517f7b75 Merge "importer/gphotos: more little cleanups" 2017-12-17 20:06:24 +00:00
Brad Fitzpatrick 77a37d01b3 importer/gphotos: more little cleanups
Change-Id: Ia97d56eb3e3f302f60c30af08a220cfa011936e2
2017-12-17 08:29:50 -08:00
mpl b66ede8500 camweb: enable default contributor name
Because I forgot to configure git one time on another machine, one of my
commits is with a lame username, and that username gets picked (instead
of the other ones) as my identity when generating the contributors page.

Therefore, this change allows to specify a default name among the already
hardcoded information for some of the contributors, so I can override
the badly configured identity that would appear otherwise.

Change-Id: I60dfe60f83d20aa33f7bf425e5b84a34bbd5a0b1
2017-12-16 04:23:27 +01:00
mpl 253e7cb5d4 pkg/deploy: ignore Domain field from page template
Fixes #985

Change-Id: If110d392885fb89d0403ab9eb3aaf8dcdc3fe249
2017-12-16 02:01:36 +01:00
mpl c45893a69b importer/gphotos: add enabling Drive API to instructions
Fixes #984

Change-Id: I12126318cf836536306fd7a861a730fc3196c7b7
2017-12-15 19:08:51 +01:00
Brad Fitzpatrick fcd5ff14e9 importer/gphotos: misc rate limit cleanups
Remove dynamic rate limit adjustment for now. It was racy.

No need to be super fast, anyway, as long as it catches up eventually.

But we can make it smarter later. I wanted to get it correct first.

Change-Id: Id5b5fc946546d8d9c0720f1c0ec2f341a17cdd01
2017-12-14 22:16:57 -08:00
Mathieu Lonjaret 286dbacc62 Merge "camweb: make syncing to github concurrent" 2017-12-15 00:08:13 +00:00
mpl 31389f8ab2 camweb: make syncing to github concurrent
Camweb is in charge of syncing the commits from the gerrit repository to
our mirror on github.

It also sends the commits as e-mails to the Camlistore mailing-list.

The former was only happening after the latter did, but there was no
reason to do it that way, as these tasks are independent. Moreover, when
sending e-mails is problematic (issue #980), it delays syncing to
github.

This change therefore makes syncing to github concurrent with
sending the e-mails.

Change-Id: I63a2b3f5b49df58ca30ec5153ce65eafb44b5b28
2017-12-15 01:05:56 +01:00
mpl 602fe8a2d4 website: serve Perkeep title
Issue #981

Change-Id: I2d323523ed29dfcb5989178c7cc0c78c462f972f
2017-12-14 16:10:43 +01:00
Mathieu Lonjaret 198d39ba5d Merge "website: s/Camlistore/Perkeep/ on index page" 2017-12-14 03:40:45 +00:00
Paul Lindner 7ae6e00368 pkg/serverinit/testdata: fix tests broken by changing error message for golint
Change-Id: Id48a2ebaed056e50f1ac6b34c4869b07590d55d3
2017-12-13 11:33:30 -08:00
Paul Lindner 04b9c0b1c4 pkg: lint fixes for "context.Context should be the first parameter of a function"
Change-Id: I0185eec5616c72d859978aec03880860421c7193
2017-12-13 11:33:21 -08:00
Paul Lindner 1383869054 all: lint fixes for "receiver name should be consistent with previous receiver name"
Change-Id: I05275cd20c92349e37365e2cbd29fa9f8d834101
2017-12-13 11:31:25 -08:00
Paul Lindner c58e07942e all: lint fixes for "if block ends with a return statement"
Change-Id: I1c244f14995478860c19695695f287d541a7a39c
2017-12-13 11:31:25 -08:00
Paul Lindner 1533d9822f pkg: lint fixes for "error var should have name of the form errFoo"
Change-Id: I0112c331b9f54f271c3724c3ad510a1426f710d4
2017-12-13 11:31:25 -08:00
Paul Lindner ba92702834 all: lint fixes for "should omit 2nd value from range"
Change-Id: I7bb19d376f96a39ecae7dbdb4d6808f704bae5fb
2017-12-13 11:31:25 -08:00
Paul Lindner e97eae91dc all: lint fixes for "don't use leading k in Go names"
Change-Id: I8647c1dcc0535b1fc8dc0e1b1ca4623c23d6ac7c
2017-12-13 11:31:25 -08:00
mpl 9a492bd05f camweb: set "go-import" meta for both camlistore.org and perkeep.org
It is not enough for go get to work, as our packages won't have the
right import path comment, but i believe it is the first necessary step.

Issue #981

Change-Id: I9418f944fc9bed603fd6acc0761e003cafdcfa8a
2017-12-13 18:32:19 +01:00
Mathieu Lonjaret d3339954df Merge "camweb: make godoc work for both camlistore.org and perkeep.org" 2017-12-13 16:05:04 +00:00
mpl 014a8d9c0b website: s/Camlistore/Perkeep/ on index page
Issue #981

Change-Id: I2d0b47d85aea828644c55e765fb04afdc3add947
2017-12-12 16:55:30 +01:00
mpl 0293828131 camweb: make godoc work for both camlistore.org and perkeep.org
Change-Id: I97db4ed1c56b0ddd0535fbc7841a89c49170fd35
2017-12-12 16:30:31 +01:00
Paul Lindner e028e3d7cd Merge "all: lint fixes for 'error strings should not be capitalized or end with punctuation or a newline'" 2017-12-11 21:29:14 +00:00
mpl d0ea11828a camweb: change the src dir on disk it uses to perkeep.org
Issue #981

Change-Id: I907bbb9c98dc8f9b62bd67c7785b3339f9ca3fad
2017-12-11 20:50:09 +01:00
Mathieu Lonjaret 527d42eb03 Merge "genfileembed: always embed paths with slashes" 2017-12-11 17:40:23 +00:00
Paul Lindner 15feaeb24c all: lint fixes for 'error strings should not be capitalized or end with punctuation or a newline'
Change-Id: I9c3766a51ac8be694ae76befff4b6fa9a85e34eb
2017-12-11 06:13:25 -08:00
Brad Fitzpatrick f107661182 Merge "all: replace usage of deprecated oauth2.NoContext with context.Background()" 2017-12-09 23:16:01 +00:00
Paul Lindner b9c2da7032 all: replace usage of deprecated oauth2.NoContext with context.Background()
Change-Id: I4fdc9719911498dc6864b4f0189ab8b01db68308
2017-12-09 14:48:53 -08:00
Mathieu Lonjaret d1258bfb1c Merge "camweb: migrate to perkeep.org as the production domain" 2017-12-09 05:51:00 +00:00
mpl 6460c449f0 camweb: migrate to perkeep.org as the production domain
issue #981

Change-Id: I0355e2ee7cf36440996f0bd00c1f2ff5bfce213d
2017-12-09 06:48:30 +01:00
Brad Fitzpatrick 0ea9386d73 Merge "C: add Paul Lindner (Google CLA)" 2017-12-09 02:14:17 +00:00
Attila Tajti f47366c659 genfileembed: always embed paths with slashes
Also change make.go to propagate -all to genfileembed.

Fixes #982

Change-Id: I605d5fc35ae0fc9c12fca639ff0a0111836b653c
2017-12-08 09:24:14 +01:00