Commit Graph

84 Commits

Author SHA1 Message Date
mpl 1a286f919f pkg/deploy/gce: revert to hardcoded google endpoints for oauth2
google.Endpoint is the only thing we were using from
third_party/golang.org/x/oauth2/google
And pkg google would in turn bring in lots of dependencies (that I had
forgotten in 22f45f14a5).
Replacing Endpoint with the hardcoded values hence allows us to not
vendor in all those dependencies.

Also fix make.go to build camdeploy as well.

Change-Id: I6ba51991187a11705c97c9546848303540f99aa1
2015-01-13 01:28:09 +01:00
Salmān Aljammāz d35ac9981c make.go: copy the correct binary when cross-compiling camlistored for docker
Change-Id: I40c8fed24bea62fd29863fc02f3e780fd73f903c
2014-11-11 18:18:30 +00:00
Brad Fitzpatrick 488f9721b4 make.go: block darwin/386 builds by default
Fixes Issue 155

Change-Id: I91d471c7557c2225f5feb6b33cc6bb7cc381a68f
2014-10-21 15:02:30 +02:00
mpl 6df14e291e make.go: tags list should be space-separated
Change-Id: I8c50a2cc0fb293644467813b53606ed09faf6fc9
2014-10-03 19:32:18 +02:00
Lindsey Simon ffb660b54d Adds less (CSS processor) v1.7.4 (Apache v2)
Change-Id: I364e46d395c0752df8c585a5aeab3aa9a289162c
2014-09-03 22:22:56 -07:00
Brad Fitzpatrick 12e595d567 Move pkg/depcheck up a level so it's not caught by our fmt checks.
gofmt barfs on it.

Change-Id: I9522d5036f75737d32b46684c894648a41e1cd82
2014-08-23 20:26:51 -07:00
Brad Fitzpatrick 8cf6ab92cf Use the 'purego' build tag, for cznic/zappy.
Change-Id: I23ef7e3f269fd884f77e61276468e023697d4580
2014-08-23 20:11:50 -07:00
Brad Fitzpatrick 7ee69bd716 make.go, genfileembed: track genfileembed output files and delete stale ones
Don't just trust all zembed_*.go files to be wanted. Instead, we now
ask genfileembed to write out its output files to stderr, parse that,
and add those to our set of wanted files. Then when we look for
unwanted files that aren't known outputs that now also potentially
includes zembed_*.go files.

This fixes a JavaScript breakage from when Aaron renamed some
JavaScript files recently.

Turns out I had 4 such files that were stale outputs.

In other news, I hereby declare a moratorium on updates to make.go.
It has become disgusting and is need of cleanup love before it is
disgraced further.

Change-Id: Ia1432d21ce486bfbca9e3c9db6f1852b859ebfc0
2014-08-16 18:19:38 -07:00
Brad Fitzpatrick c6b72a6e52 make.go: don't treat all ReadFile errors the same
Change-Id: Icdb2f313e77f46fba6e094cab9ae6a114c3bcef2
2014-08-16 17:35:38 -07:00
Brad Fitzpatrick 274f838f6f Add make.go support for building the camlistored Docker binary.
Change-Id: I2f8ad914b217843749c0aee57c24ce44c1c619f1
2014-08-16 14:56:40 -07:00
Bill Thiede 77d36bf198 make: copy all files found in testdata/
This saves people from needing to updating rxMirrored every time they add a
new type of file to their tests.

Change-Id: I32f87dbe92ae844e411ce77d0abe67c37a668ff3
2014-08-15 09:33:21 -07:00
mpl 145e8d1edb Merge "make.go: enable if_mods_since flag" 2014-08-11 21:21:48 +00:00
mpl f9162702cb make.go: enable if_mods_since flag
And use the flag in integration tests.
devcam server already uses it.
Does not fully work yet with devcam test.

Change-Id: I0dbd2b28ff60090133abf0b9578e33d5788a6603
2014-08-11 19:00:55 +02:00
mpl d953dee008 devcam test: do not "recurse" temp GOPATH, docs, couple more options.
Problem: make.go creates an isolated temp gopath ./tmp/build-gopath. The
integration tests make use of that gopath (by running make.go) to build
the tools, and run the test world in it. Similarly, devcam test uses
make.go to setup that temp gopath, and runs the tests from the source
files in that gopath. Consequently, when the integration tests are run
through devcam test, even though they're run from the temp gopath, they
would use the make.go in it, which would create a nested temp gopath
(CAMLIROOT/tmp/build-gopath/src/camlistore.org/tmp/build-gopath) in
which to run the tests.

This patch addresses this issue by creating a new flag (-envGoPath), and
the corresponding env var (CAMLI_MAKE_USEGOPATH), which tells make.go
not to create a new temporary gopath (and hence not to mirror any
files), and to rely on the already set GOPATH env var instead.

Also refactored make.go a bit, and added a couple options and doc to
devcam test.

Change-Id: Ia8a5d7a31e6e317f05218d9e18fb886001cd19cb
2014-08-08 22:02:57 +02:00
mpl 1d67424167 Merge "devcam test: do not "recurse" temp GOPATH, docs, couple more options." 2014-08-07 20:26:28 +00:00
mpl 27102a044e 0.8 release: document and force Go 1.3 requirement
http://camlistore.org/issue/485

Change-Id: If5304e6aafee21b77ced4b34ecef29a2a1bd6712
2014-08-06 19:11:16 +02:00
Bill Thiede 0455681bd4 diskpacked: bug fix walkPack and add test.
Replace reindex.go deleted blob.Ref detection loop with a regexp.
Replace diskpacked.go's isDeletedRef with same regexp.

Add a test that verifies the returned blobs match expectations and verifies
multipack diskpacked works..

Add new extension '.blobs' to devcam test's list of suffixes to copy.

Tests fail without the changes to reindex.go.

Change-Id: I0743c1b1ea295324ae3a39e70e6a07e2d6aa70e9
2014-07-09 21:55:04 -07:00
mpl a34f9e2669 publisher app
http://camlistore.org/issue/365

Change-Id: I281fdcbbe6a2bdf15607e75a21bc93b453f82c85
2014-06-15 00:03:03 +02:00
mpl 357e405660 importer/picasa: use test.FileResponder, fix test on devcam
We needed to include xml files in make.go

Change-Id: Ibf89a276ebef74d4b03f24934c36c337060226c9
2014-05-29 17:44:48 +02:00
mpl 21dda2b4ef app/hello: dummy server application (hello world)
Change-Id: I6690b9459325af5a76d1de679d56701eefdd195e
2014-05-08 22:15:01 +02:00
Aaron Boodman 05fe532fc2 Fix broken embedding of fontawesome in production
Change-Id: I8e8f6b3950ecc319b4516d4be0b0c720113f0b9f
2014-04-11 22:00:33 -07:00
Aaron Boodman 257c471ff2 Don't rebuild file embeds if they haven't changed.
Change-Id: Ia3de5b5dc00341254b76b7adf88bf6038319690e
2014-04-05 19:40:06 -07:00
Aaron Boodman 2c675b3a87 Add FontAwesome. This will be used for icons in the UI.
Change-Id: I92fecd44f12cce83f4daee88bce062d9123a48a7
2014-04-05 17:19:29 -07:00
Daniel Coonce 0852c22aa9 make.go: Fix windows build.
Running genfileembed on Windows requires .exe extension.

Change-Id: I34440db9c2f719c87149c16ef40a71433bf256fe
2014-03-28 12:34:11 -05:00
Bill Thiede b28dcbe9be make: add cammount to default targets.
Fixes default build on Linux (and probably Darwin).

Change-Id: Ice9e4cfbcde2b565c7f084c5cac57468bea08165
2014-02-21 14:30:23 -08:00
Bill Thiede a68ee60ec0 make: only build binaries and their dependencies.
New behavior for -targets:
- Empty only builds default binaries for this requested platform.
- * builds binaries and recursively builds pkg/..., server/..., and
    third_party/... (old empty behavior).
- Or specify the packages you want to build separated by commas.

This should fix the failing build on FreeBSD.

Change-Id: I3e19fd26b7fa5526bb2139487f25a07fa01952c4
2014-02-19 21:00:21 -08:00
Brad Fitzpatrick 69bb3212b2 make.go: mirror over all magic testdata files too 2014-01-23 13:57:25 -08:00
Daniel Erat 7c805515bc make.go: Mirror .mp3 testdata.
Change-Id: Iab40eb1cc7799fab1b499c9a0354114a65f0b45a
2014-01-20 22:04:50 -08:00
Aaron Boodman 2d70e6794f Increase pigginess in new detail UI.
Change-Id: I4eb1acf7e6cd114edf7c5f66fcb4fb6ff8842bdb
2013-12-31 17:49:42 -08:00
Aaron Boodman 479f10a7f5 Make rxMirrored slightly more strict by escaping the dot in "min.js".
Change-Id: Ibe78f464e7e18a35247fb3a3780402906d3cc818
2013-12-29 10:20:02 -08:00
Aaron Boodman 4a3b87fe24 Serve React from both devcam server and camlistored.
In camlistored, only react.min.js is served. In devcam all files in
the read directory are served.

Change-Id: I0cb8a4c328e550b5303edef4be7571d39d123340
2013-12-28 21:49:41 -08:00
Brad Fitzpatrick 5bf44f9aa4 make.go: remove mac-specific check for sqlite3 in Cellar.
Change-Id: Ie9a069734becc2b998e54dfe661bf3f869d036c6
2013-12-24 18:24:24 -08:00
Brad Fitzpatrick c61a3dfdf7 make.go: don't build mattn/go-sqlite3 if sqlite3 isn't available
Tested with:
$ PKG_CONFIG_LIBDIR=/xx go run make.go

Change-Id: Idfc6bd703261e5bc39378c889d6f49cc4af017d1
2013-12-24 17:42:32 -08:00
Brad Fitzpatrick 2fde7c11a0 Add make.go option to build with the race detector.
Change-Id: Ie972bd7ca74e59cbdbf4000ba505473fdd15dc6f
2013-12-11 15:53:36 +04:00
Steve Phillips fc09b38397 verifyGoVersion: log.Fatalf was missing 'version' var
Change-Id: I10c71e96a598ec640131245b73ae201161f68622
2013-10-08 11:47:45 -07:00
Aaron Boodman aac43b56fc Move to "G+-style" selection.
To select an item, click the checkmark that overlays on rollover.
To navigate, just click anywhere else on the item.

Also move selection from additive by default rather than exclusive.

Change-Id: I47e6ca1942fe1fdaaf615f6ab0e0a547f1a51735
2013-10-03 22:06:31 +00:00
Brad Fitzpatrick b377055f1f make.go: preserve executable bit when copying binaries to bin
Change-Id: Ia2c415aaaa2ab5ffa52766f5adfb4f5af7377961
2013-09-21 13:23:07 +01:00
Brad Fitzpatrick bec961cc00 make.go: don't use GOBIN; copy binaries out from temp GOPATH/bin by hand
Fixes http://camlistore.org/issue/229

Change-Id: I7769330e0982a92d4fa90bbce44330b6a473ee0b
2013-09-21 12:45:36 +01:00
mpl 97fe4be9d6 Merge "devcam test, replaces make presubmit" 2013-09-19 15:05:07 +00:00
mpl ba8f88c21a devcam test, replaces make presubmit
http://camlistore.org/issue/223

Change-Id: Iaaea9926a98d7d3335fd6ee52daa225e51ec4703
2013-09-19 17:00:59 +02:00
Brad Fitzpatrick 79065de4b9 For SQLite compile errors, link to the wiki.
Change-Id: I34b1485daba6173d6665cfc56b6bba43164534d8
2013-09-19 10:17:57 +01:00
Brad Fitzpatrick 13691c699f make.go: build camput, etc faster, ignoring embedded UI resources
Change-Id: I1f7f60f4d5de97f69ddaf8c370889320ca8d5efe
2013-09-10 22:42:24 -07:00
Brad Fitzpatrick 7a34e5a52a Upstream bug is fixed.
http://golang.org/issue/6319

Change-Id: I9467a7727fdb4b27cb1c4b5ceb093c2b1635427f
2013-09-04 13:44:43 -07:00
Brad Fitzpatrick 501c6dcd45 Change make.go to build devcam. Update HACKING file.
Change-Id: I6938b519cc721ca23ab9c6de8e86a6a1b944010f
2013-09-03 19:56:42 -07:00
Brad Fitzpatrick dabe4355af Change how the Android camput.arm asset is built to use make.go
Change-Id: I00a6e22ef088a173f78ffca83c984d915670180c
2013-09-03 19:48:32 -07:00
Brad Fitzpatrick 22e7395f85 Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2013-08-26 18:01:30 -05:00
Brad Fitzpatrick ac05ce80ae Merge "devcam: bugfix; do not fail when binary does not exist" 2013-08-26 23:01:22 +00:00
Brad Fitzpatrick ed998308fe make.go: turn --sqlite flag into a tri-state with 'auto' as default
Change-Id: I916e90aec6a19ff3d8610eccf8df84f445a46730
2013-08-26 17:52:02 -05:00
mpl 6bc558910d devcam: bugfix; do not fail when binary does not exist
http://camlistore.org/issue/213

Change-Id: I432a8ec04cb02c4c5241bd38361fad3d6d39ee02
2013-08-26 15:14:52 +02:00
Brad Fitzpatrick 46020e1551 Make kvfile index the default if SQLite isn't available.
We now work out of the box, with no external dependencies.

Change-Id: I8d0cedb33518e418a7ff28cdb22f9ba9ef400d6f
2013-08-25 12:57:51 -05:00