The import path was added to the go file that included the package
documentation if one existed. Otherwise, I used what seemed to be the
primary file for the package.
Fixes#689
Change-Id: If51be0e86529fd6f179e80af6781e639f8550fd2
As drop is a uint8, and charOffset is a const, drop + charOffset is a
uint8, which overflows if the result is > 255.
The original code
(at https://github.com/bup/bup/blob/master/lib/bup/bupsplit.c):
r->s2 += r->s1 - (BUP_WINDOWSIZE * (drop + ROLLSUM_CHAR_OFFSET));
does not have this problem because drop in this case is implicitly
converted to unsigned before the arithmetic is applied, according the
the C 'usual arithmetic conversions'.
This change thus converts drop to a uint32 before the addition.
pkg/schema/filewriter_test.go: tests repaired
By changing the chunking boundaries, this modification to rollsum
breaks the tests for filewriter. The number and boundaries of chunks
changes and the fileMap describing the file changes accordingly.
Fixes#611
Change-Id: Ica3140a194b1218921e6ae0ac3206ccd0b93fa72
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