Commit Graph

49 Commits

Author SHA1 Message Date
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 cf744db5bf website: move to Fly
Sadly I did this all once (and more completely) but then lost the
commit. So this is a re-do. The sharing demo stuff isn't yet complete.

Updates #1658 etc
2024-01-03 21:02:01 -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
Brad Fitzpatrick ccbe18f668 Add Makefile rule to push dev Docker images to gcr.io.
Change-Id: I60cb8a8457591ae35b8b9f3c8e42a1290a2697d7
2018-08-17 14:03:50 -07:00
Brad Fitzpatrick 9f65efad5a Dockerfile: update for 0.10 release
Revive this Dockerfile, convert it from camlistore to perkeep, and
make it a multi-stage build.

We still need to clean this up later and not hard-code the VERSION
file contents inside it. But this is something.

Change-Id: I2378449ffbcc2ff005c9d441e378266694d7d430
2018-05-01 23:17:40 -07:00
Brad Fitzpatrick ca76a40bbc Rename camlistored to perkeepd.
Updates #981

Change-Id: I8fe43c240c149074c23128a89ab426af9cbf94b4
2018-04-21 11:06:09 -07:00
Brad Fitzpatrick d6a0b05df0 Rename import paths from camlistore.org to perkeep.org.
Part of the project renaming, issue #981.

After this, users will need to mv their $GOPATH/src/camlistore.org to
$GOPATH/src/perkeep.org. Sorry.

This doesn't yet rename the tools like camlistored, camput, camget,
camtool, etc.

Also, this only moves the lru package to internal. More will move to
internal later.

Also, this doesn't yet remove the "/pkg/" directory. That'll likely
happen later.

This updates some docs, but not all.

devcam test now passes again, even with Go 1.10 (which requires vet
checks are clean too). So a bunch of vet tests are fixed in this CL
too, and a bunch of other broken tests are now fixed (introduced from
the past week of merging the CL backlog).

Change-Id: If580db1691b5b99f8ed6195070789b1f44877dd4
2018-01-01 16:03:34 -08:00
Paul Lindner f28eb3cce8 Remove appengine server and the old python blobserver
Change-Id: I734f4621f77ce902050e9b37805e7f8912f75e97
2017-11-30 19:13:37 -08:00
mpl 63d6e384bb path fixes for third_party move
A few more left in in misc/docker that I'll do separately

Related: 75d60962f6

Change-Id: Id5f6a3729e33aca97f8664ca8ef91afc64461891
2016-04-21 12:25:17 -07:00
mpl 5398396ef5 UI: remove unused blob pages
Also remove obsolete stanzas in Makefile

Change-Id: I864451e44bf760ab546d02d5bbf7b59afdc8a665
2015-06-22 17:24:35 +02:00
Aaron Boodman bc5fd6ea9d Remove no longer used permanode.js
Change-Id: I02a723ac81957e9f5438ab27399974554e7c39c7
2015-01-04 22:52:32 -08:00
Bill Thiede c360867970 make: run 'devcam test' for presubmit target
The previous behavior (now build target oldpresubmit) was slightly different
than devcam test; it didn't copy files to a clean directory and test in
isolation.  The buildbot uses devcam test, and for consistency 'make
presubmit' should too.

This runs devcam test with -short, mirroring -short from the previous
presubmit.  The buildbot runs devcam without -short.

Change-Id: I71e308bd16104004a8cd790901e88edebedab2a9
2014-07-15 22:17:09 -07:00
Brad Fitzpatrick 9e20a76c99 Fix Makefile's forcefull target to avoid broken targets.
Change-Id: I43073fec6565d52375367dff108dee1ef25fa13a
2014-07-02 14:33:33 -07:00
Steven L. Speek a40d5d467b Makefile: fmt target
Made it a prerequisite of presubmit

Change-Id: Ia0d8f5f5bf1131d4004c950af98ad5e078b3423b
2014-03-20 20:04:35 +01:00
Aaron Boodman 53e12a740c Add jstests.go, a unit test harness for JavaScript files.
Change-Id: I3d755f0001c0528f5db2dbe8cdfc10fa60443c89
2014-01-06 20:21:43 -08:00
Bill Thiede 53397ce117 Add ./dev/... to multiple build targets.
Adds ./dev/... to forcefull, full, & presubmit.

Change-Id: I64d947b92dcda09ceb6bd2c536f1b698e2367cc0
2013-09-11 19:36:49 -07:00
Brad Fitzpatrick ae20a0f7de Ditch App Engine ContextWrapper noise; add test that App Engine always compiles.
I had broken App Engine in my previous commit, since it wasn't part of 'make presubmit'

Change-Id: I32c25efbc7c348ff516128c87b6e817ae0685386
2013-08-21 18:51:10 -05:00
mpl 5645570ca9 dev-server: use updatelibrary.go to update closure lib
This change also removes misc/get_closure.pl and updates
the Makefile accordingly.

http://camlistore.org/issue/140

Change-Id: I508271cee24eb20d8391cb3d84e1201ce3ef567e
2013-07-23 16:19:46 +02:00
Brad Fitzpatrick 3ebcb011e4 Makefile: make 'go run make.go' the default
Change-Id: Ifbac6719e3585bd7ddad7a2306ca4174fd28789a
2013-06-21 23:07:14 -07:00
mpl ad5f3b854d genjsdeps: now pkg + cmd in misc/closure/
pkg/server/ui.go uses misc/closure too

fixes http://camlistore.org/issue/142

Change-Id: I614e34e6b7d493d66aa61108e3ca940854844c0f
2013-06-14 00:29:45 +02:00
mpl 75507e65fa newui: Final move to get rid of the old ui!
1) Everything in ui/ except for js-notes.txt was removed.
2) mv newui/* ui/
3) modified pkg/server/ui.go to make it all work
4) modified Makefile to generate server/camlistored/ui/deps.js
5) regenerated all the zembeds
6) Some fixes to attempt to make it (re-)work on appengine:
  -removed the Go1.1 check
  -added pkg/osutil/restart_stub.go (for restarting a process)
7) The closure handler now redirects to the online files when
the closure library is not on disk, because we do not embed
the required closure js files.

Change-Id: Id1bcf007550cafb7188ba2674352e8f3bd07fb8c
2013-06-11 13:25:59 +02:00
Brad Fitzpatrick 3b3c2288a2 New build tool. Should even work on Windows, if Go 1.1 is available, without MinGW/msys/etc.
Change-Id: Idb197cc2309ae294ce42d41c7d35333d1cfed48c
2013-06-11 00:55:17 +02:00
mpl 5055205d9e Makefile: added DebugPage namespace in all.js
Change-Id: I571e3cc5da192866553b74bdc01ad55b04283ba9
2013-06-09 00:21:45 +02:00
mpl 3040e3852e Merge "WIP: switch from ui to newui" 2013-06-05 12:29:29 +00:00
mpl 11a3f78691 WIP: switch from ui to newui
This CL proposes 4 changes:

1) When making the embeds, any .html files in newui is rewwritten
on the fly so that the resulting embed uses all.js instead of
individual .js files. all.js is the only javascript file embedded
for newui.

2) Various bugs and paths in the newui/*.js files were fixed so that
everything works when using all.js

3) pkg/server/ui.go was modified so that all features from ui should
now have an equivalent in newui, that is served through ui/new/.
In a next step, we can move back everything from newui/ into ui/ and
completely get rid of the old ui.

4) The published gallery now uses closure too.
In another next step, we should probably work on serving its static
part directly from an .html file or (include it in the zembed somehow?)
instead of generating it at every request. Or at least cache it?

This commit includes the zembeds in newui, except for zembed_all.js.go
since it is large and it would take a lot of space in the git history
everytime we change it.
The plan is to roll-sum it into chunks to address that problem.

Change-Id: I381d8ddf3a2bbe37e3c4b1c4bf423f16beffaaf4
2013-06-04 16:34:51 +02:00
Brad Fitzpatrick da9e7c8f34 Add Makefile hint
Change-Id: Ie10821f6821b8e63f2a143e9e4c68f244d2da149
2013-05-25 15:00:00 -07:00
Brad Fitzpatrick 40fb683aad Makefile: add clean target
Change-Id: I4ec279e3e39fe5388d75f694542149d72d588d49
2013-02-10 20:06:42 -08:00
Brad Fitzpatrick b6f588abcc newui: use SIMPLE_OPTIMIZATION. turns out ADVANCED_OPTIMIZATIONS won't work without lots of pain and isn't worth it.
Change-Id: I2313c2815f6264256d24f5ad176ca580eef6b2ad
2013-02-10 18:02:06 -08:00
Brad Fitzpatrick 1f31c21cec Generate and server Closure sourcemaps.
Change-Id: Ida17718eeffa1f5f1f3c849790d977921707d440
2013-02-10 17:39:18 -08:00
Brad Fitzpatrick 3a8c4f1cdc Makefile: add more minijs deps
Change-Id: I827cf023e927e1b5068525783816200c16e85438
2013-02-10 17:11:50 -08:00
mpl 306213b32b Merge "Make newui ready to dev on with closure compiler, plus misc cleanup." 2013-02-07 15:24:08 +00:00
mpl ee29f1f8e7 Make newui ready to dev on with closure compiler, plus misc cleanup.
Added env var in dev-server and rules in Makefile to build
all.js with the closure compiler from the js files in newui.

Misc related changes:
-fixed a few closure annotations and added a few as well.
-added missing options to dev-server usage.
-renamed CAM_HTTP_DEBUG into CAMLI_HTTP_DEBUG for consistency.

Change-Id: Ica2c12358150aec24147628201e6f7a5852f9383
2013-02-07 15:25:10 +01:00
Brad Fitzpatrick e398532b4a buildinfo: include dirty + flag in version
Change-Id: Idc4763de41fdfa055fed5c06a36db9e9539f60bc
2013-02-03 10:14:21 -08:00
Brad Fitzpatrick ddcec4e92c Add --version flags to tools.
Change-Id: I1c86c3de09fb59bc20539f7d1efbd4d4710bf494
2013-02-02 10:59:39 -08:00
Brad Fitzpatrick 108a72f458 Makefile: Mac's shell built-in echo doesn't have -n; was being passed to go
Change-Id: I792758750333c51068b91518564c8650fb8fc8e3
2013-01-28 08:35:53 -08:00
mpl 08a828de78 Makefile: checkjs, i.e run closure builder with the closure compiler
Change-Id: I0cd013ed132251379458c28f8947ab5efd2bdd0b
2013-01-26 00:13:50 +01:00
Brad Fitzpatrick de20351d65 Makefile: detect sqlite automatically
Change-Id: Ib21ec16462ec2f0bc58456127534db5493c1ae67
2013-01-25 14:52:48 -08:00
Brad Fitzpatrick b81b2fa98f Makefile: add 'forcefull' workaround
Change-Id: Ifaf40794e84e0fef5697fb54332826680c442a37
2013-01-20 13:35:37 -08:00
Brad Fitzpatrick d884314d20 Default to not using sqlite
Change-Id: I22eafd8ae7ac1a18a13251675f08a30e3180bd03
2013-01-20 11:57:34 -08:00
Brad Fitzpatrick 2ce7b7f719 Add a favicon to the server.
Change-Id: I123b897bad6e34d36458c9f128eafa6807c3e3be
2013-01-12 21:25:55 -08:00
Brad Fitzpatrick 88e92a6cc5 Document blobserver.Loader methods, fix GetHandlerType to not force-load, diagnose loops better.
Change-Id: I03e989267e80ad610d3877c97fbf8adc8a88bb60
2013-01-11 12:42:30 -08:00
Brad Fitzpatrick 02b8b35b51 Make sqlite support optional and detectable. 2013-01-10 14:29:20 -08:00
Brad Fitzpatrick 256fb531b1 presubmit: say PASS at the end 2012-11-07 17:49:22 +01:00
mpl 295cbade1b Add postgres support
Also added the -short option for make presubmit
because postgres test is too slow.

Change-Id: I6be21c4d4cd67671eb44ab65333fc32c1e261bbd
2012-11-03 19:59:22 +01:00
Brad Fitzpatrick 4849adfd59 update Makefile to use the go command
Change-Id: I299cbef90f23fbd65378f76d6e5e1e476fdc0d61
2012-04-13 13:51:52 -07:00
Brad Fitzpatrick 1a40867811 add target to generate zembed files 2012-02-28 14:51:42 +11:00
Brad Fitzpatrick 55e6ffe8e3 Add presubmit Make target. 2011-03-05 13:44:19 -08:00
Brad Fitzpatrick c4c04e7550 Add Android client to build.pl 2011-02-03 17:40:53 -08:00
Brad Fitzpatrick 1ca2787f26 Clean up the build system a bit. 2011-02-03 17:32:34 -08:00