Commit Graph

1437 Commits

Author SHA1 Message Date
Brad Fitzpatrick 3b835e76ea remove old build tool, build.pl. now using the 'go' command.
Change-Id: I6b10943509044be8e6cf158005654386f57a2d59
2012-03-05 07:35:36 -08:00
Brad Fitzpatrick 1026c32f06 remove the db and dbimpl packages; now in the Go core as database/sql and database/sql/driver
Change-Id: Ie88df6466f9b81e4320895049dd3611c43e0ea4a
2012-03-05 07:34:01 -08:00
Brad Fitzpatrick a1e4d063f4 camlistored: move TLS setup to a function.
simplifies main.

Change-Id: If69523888102df2268c5b7c4e02e13afa91a7997
2012-03-05 07:17:58 -08:00
mpl 882f2d5eef generate default config for user when needed
Change-Id: Ifb5897b38cd72f18ff7ce1e9c3a8c23ee8751ba1
2012-03-05 00:04:35 +01:00
Brad Fitzpatrick f745487a49 In dev server config, use /bs-and-maybe-also-index/ to speed public permanode bootstrap blob uploads.
Change-Id: Ib32164ca9e3e958d34906077a1841800026d42ee
2012-03-03 12:54:20 -08:00
Brad Fitzpatrick 35e0f4805f cond: use new bytes.NewReader instead of bytes.NewBuffer
Change-Id: If55c959983b5a894fc838d3d5aa2dd45e1e86892
2012-03-03 12:43:37 -08:00
Brad Fitzpatrick 3ab1618f0b schema: generate unique permanodes.
it was using second time granularity for both the random and the signing,
leading to dup permanode creation on fast machines.

Change-Id: Id7ea50f8ce8c4c3da6964e98bb3a09dc7992cec7
2012-03-03 12:37:54 -08:00
Brad Fitzpatrick 1987fea7e8 Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2012-02-29 08:02:59 -08:00
Brad Fitzpatrick 7751fac185 fix dev-server for file embedding
Change-Id: I23254930eaedf11a87389d85f54f86bafac20866
2012-02-29 08:01:59 -08:00
Brad Fitzpatrick 1642f9116c style
Change-Id: If0022de555bc444e7938693a5d1aa9a65a6d90aa
2012-02-29 08:01:49 -08:00
Brad Fitzpatrick dbf7e5e1e9 server/camlistored/ui: embed css too
Change-Id: Ic02b939dd59a4f9378719f18cfe2b5bc50545aab
2012-02-29 08:01:32 -08:00
mpl dec534c22b use local gopath if GOPATH not set
Change-Id: Iee017e7fdd8913792e9491650bc6f88529c1b4f6
2012-02-29 11:45:21 +01:00
Brad Fitzpatrick 5d9f13ccab dev-server: fix path to test-secring
Change-Id: I59acfa5d975f6124cc90ca2b96338a9cd5266ef1
2012-02-28 23:42:28 -08:00
Brad Fitzpatrick 8408c4f9b8 server/camlistored: link in pkg/index again.
Change-Id: Ie60572c1a5d4db4c90f93d0033d2fcbf67431d2f
2012-02-28 23:16:41 -08:00
Brad Fitzpatrick 5b0d390f14 Update dev-server to use the go tool to build.
Change-Id: I0e5211fc785dca2bc16ec835d047d812a99e2441
2012-02-28 23:14:26 -08:00
Brad Fitzpatrick a98c59f082 include file modtimes in filembed
Change-Id: I9255071c163664bd9b00786df65e630668e227d0
2012-02-28 22:49:52 -08:00
Brad Fitzpatrick 00be809cde add WIP notes on modeling a blog
Change-Id: I4d659c6eeb23d4fd4009576e7233e8b5aa724947
2012-02-28 19:43:33 -08:00
Brad Fitzpatrick 768af3d368 move clients/go/camgsinit to clients/camgsinit
Change-Id: I662b3b1ff4cf36a03f736533d3405737820f511f
2012-02-28 19:42:38 -08:00
Brad Fitzpatrick 350491ef7a fix import
Change-Id: I1943db2ab1913345ef05b3987d96e63a5600d39d
2012-02-28 19:42:04 -08:00
Brad Fitzpatrick 1a40867811 add target to generate zembed files 2012-02-28 14:51:42 +11:00
Brad Fitzpatrick f4dd857477 checking in auto-generated zembed_*.go files 2012-02-28 14:51:21 +11:00
Brad Fitzpatrick 552b768eeb add genfileembed tool, to embed html/css/js/etc into zembed_*.go files 2012-02-28 14:50:17 +11:00
Brad Fitzpatrick 61c9d1998e update header's date 2012-02-28 12:45:58 +11:00
Brad Fitzpatrick 64bbffc3b5 move fileembed from misc 2012-02-28 12:45:46 +11:00
mpl f9d0ad487e index packages reorganization
Change-Id: Ie91c4bb5ea02a49e59ad093ac972d84b17a046d4
2012-02-26 13:50:14 +01:00
ranveer d1e1f2bcb1 Add path/filepath
Fixes broken build.

Change-Id: Ia691b76b9a4d3c92f310223166f53d65f1286ec1
2012-02-22 10:52:21 -02:00
Brad Fitzpatrick af57ae8ae1 don't fail if mongo isn't available
Change-Id: I60754c1f0ec6a942c77ae9618c9a9ee12071ddb4
2012-02-22 01:23:23 -08:00
Brad Fitzpatrick fde0650a90 rewrite launchpad.net imports to be under camlistore.org/third_party
Change-Id: If683b9bb000b8c9aabce2d4bf0e37ae808e25c92
2012-02-22 01:18:46 -08:00
mpl 5a2c060409 mongo tests now actually fail when no mongodb running
Change-Id: I470c2184c620fa0bba02001ea6877a95cf53d9d6
2012-02-21 15:25:29 +01:00
mpl d40c9dce1d update memindex: use default for db r/w options,
update secring path in test,
-> all tests in index now pass

Change-Id: I8fdd99aad1d0d009cf99c773801a9ae875b56137
2012-02-21 11:51:54 +01:00
Brad Fitzpatrick c825acde06 move camdebug to cmd; it compiles as Go 1 already.
Change-Id: Ic9aa1112a504da96738b7ec3fc224df54b92cdc8
2012-02-21 02:14:34 -08:00
Brad Fitzpatrick 1cbadb5d6f Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2012-02-21 02:11:44 -08:00
Brad Fitzpatrick 525060ce06 update camweb to Go 1
Change-Id: Id4a5ecec68587b0c35b30bb710f681c19315ee11
2012-02-21 02:11:28 -08:00
Brad Fitzpatrick a971132127 Merge "time details" 2012-02-21 10:02:19 +00:00
mpl a7c4d1f03a time details
Change-Id: Ic4041956e1d7d3b50fea00ab970a68f3c4c2e80d
2012-02-21 11:01:27 +01:00
Brad Fitzpatrick b035b8f164 remove dummy testlib packages, used just during go get demo.
Change-Id: I5e0afbc7d3cb07ee65f43b46961d81f3abcefd7b
2012-02-21 01:58:12 -08:00
Brad Fitzpatrick a2a5374c0f remove build directory
Change-Id: I4ea4162461811c55c07c982232d64748e0946f46
2012-02-21 01:57:25 -08:00
Brad Fitzpatrick 38a62f2e7d import snappy-go and leveldb-go
Change-Id: I591cb8f818af0f9d8fc493075eeaba1ddc435ef6
2012-02-21 01:55:20 -08:00
Brad Fitzpatrick 77ac4173ae fix rewrite-imports.sh destination path
Change-Id: If6bab560e80593d4f032fa9b19e10b43b365d551
2012-02-21 01:55:03 -08:00
Brad Fitzpatrick 74eec6d6b4 Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2012-02-21 01:48:58 -08:00
Brad Fitzpatrick ed4fb4ba3c add a dummy gopath directory, if the user's GOPATH isn't setup.
Change-Id: I06bb778b271d6a3cdc28d2060d1a2e9c91c2f414
2012-02-21 01:48:39 -08:00
mpl 28caffab1f remove empty blob dirs in queue. fixes issue 47.
Change-Id: If07576825123be910f040f0c5a0dc6988d55de08
2012-02-20 15:07:14 +01:00
mpl 50df48d519 first pass with mgo as indexer
fixed indexer so that it builds as a package
added mgo as a third party
fixed mgoindexer
fixed (hackishly) tests so that they pass
I ignored everything memindex for now

Change-Id: I3c03ecfa859cf92b088a759239278b1c0edaf8aa
2012-02-20 14:40:24 +01:00
Brad Fitzpatrick 0714a463c9 Update from r60 to [almost] Go 1.
A lot is still broken, but most stuff at least compiles now.

The directory tree has been rearranged now too.  Go libraries are now
under "pkg".  Fully qualified, they are e.g. "camlistore.org/pkg/jsonsign".

The go tool cannot yet fetch from arbitrary domains, but discussion is
happening now on which mechanism to use to allow that.

For now, put the camlistore root under $GOPATH/src.  Typically $GOPATH
is $HOME, so Camlistore should be at $HOME/src/camlistore.org.

Then you can:

$ go build ./server/camlistored

... etc

The build.pl script is currently disabled.  It'll be resurrected at
some point, but with a very different role (helping create a fake
GOPATH and running the go build command, if things are installed at
the wrong place, and/or running fileembed generators).

Many things are certainly broken.

Many things are disabled.  (MySQL, all indexing, etc).

Many things need to be moved into
camlistore.org/third_party/{code.google.com,github.com} and updated
from their r60 to Go 1 versions, where applicable.

The GoMySQL stuff should be updated to use database/sql and the ziutek
library implementing database/sql/driver.

Help wanted.

Change-Id: If71217dc5c8f0e70dbe46e9504ca5131c6eeacde
2012-02-18 21:53:06 -08:00
Brad Fitzpatrick c9ef8a1df9 Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2012-02-06 16:14:26 -08:00
Brad Fitzpatrick e09c50f44c test of experimenting with go1 support
Change-Id: I8520c48e42de068ea12895378479ac6bef57e0ec
2012-02-06 16:14:13 -08:00
mpl c53860538d fix histogram algo
Change-Id: Ib26321785f388d0863fedf542b9bb4d8a0deb548
2012-01-02 20:35:21 +01:00
Andrew Gerrand d60d29c560 implement recursive fetch 2012-01-02 16:07:58 +11:00
Andrew Gerrand 7f6964a0d6 actually do something with -o flag 2012-01-02 15:23:39 +11:00
Andrew Gerrand 25542a9c68 BlobSniffer.Body return []byte instead of string 2012-01-02 15:21:13 +11:00