Граф коммитов

19 Коммитов

Автор SHA1 Сообщение Дата
elhmn 1b0ecde670 Upgrade build scripts to go1.21 2023-11-03 13:07:54 +01:00
Michael Haggerty 0ee2accf1a Add support for building automatically on Darwin:arm64 2021-04-19 17:07:03 +02:00
Michael Haggerty 649faaea22 install-vendored-go: also consider the architecture
Make sure to download the Go toolchain that matches the architecture
of the host where the `Makefile` is being run.
2021-04-19 17:06:28 +02:00
Michael Haggerty c1d1946924 Update to go1.16.3 2021-04-19 12:20:07 +02:00
Michael Haggerty 5c102720e1 Upgrade to Go 1.13.4 and set up for use with Go modules 2019-12-04 14:33:37 +01:00
Michael Haggerty b730bd30e7 Change the structure of the repository to make it work with `go get` 2018-02-22 17:38:20 +01:00
Michael Haggerty 5c490548b9 Don't pretend that the build instructions work on all platforms 2018-01-28 07:41:05 +01:00
Michael Haggerty 1e6b348fdb We don't actually use `dep`, so don't bootstrap it 2018-01-28 07:41:05 +01:00
Michael Haggerty b7dac53e0d ensure-go-installed.sh: make version number check more robust
...and fix a comment.
2018-01-27 17:04:00 +01:00
Michael Haggerty 927ceb742a ensure-go-installed.sh: remove bash dependency
This means that the caller has to set ROOTDIR before invoking
it (which the existing callers do anyway).
2018-01-27 17:04:00 +01:00
Michael Haggerty 94c58de1b6 install-vendored-go: fix the checksums to agree with the Go version
And add a comment to help prevent them getting out of sync again.
2018-01-27 17:04:00 +01:00
Michael Haggerty 4178a951f2 Remove the go archive if it is not downloaded correctly 2018-01-27 17:04:00 +01:00
Michael Haggerty c0f8539b56 install-vendored-go: remove bash dependency 2018-01-27 17:04:00 +01:00
Michael Haggerty e233874f69 ensure-go-installed is meant to be sourced, not executed
Rename it and make it non-executable to prevent confusion.
2018-01-27 17:04:00 +01:00
Michael Haggerty 11c213f714 Standardize indents in shell scripts 2018-01-27 17:04:00 +01:00
Michael Haggerty ddb738f9c3 Fix quoting 2018-01-27 17:04:00 +01:00
Michael Haggerty d9fdb7bb44 Update version of Go installed by default 2018-01-27 17:04:00 +01:00
Michael Haggerty beb7399ca8 Depify
...though there are no actual deps right now.
2018-01-27 17:04:00 +01:00
Michael Haggerty 568e76994d Implement the main command, `git-sizer`
It can compute various dimensions about a tree object in a Git
repository, in a way that is robust against git bombs.

For now it must be passed the path to a Git repository and one or more
tree object specifications (like `HEAD^{tree}` or `HEAD:src`). That is
likely to change.

To avoid starting up lots of processes, we use `git cat-file --batch`
to read trees. But for blobs we only need to know the size, so use
`git cat-file --batch-check` for blobs. This unfortunately means that
we need to keep two `git` processes running, which means paying the
git startup time twice.
2018-01-27 16:55:53 +01:00