-
Notifications
You must be signed in to change notification settings - Fork 231
build process is unfriendly #409
Copy link
Copy link
Closed
Milestone
Description
makerequires goreleaser, which it uses to build for every platform. Most people don't have goreleaser or need builds for foreign platforms. This cross-compilation process is also quite slow.- bogdomania reports that even with
git submodule update --init, dependencies are missing until he doesgo get ./...--- it should be clearer thatgo getis not required to build oragono, so we should figure out why this happens - We've had incidents (like with the emoji branch) where people try to build the software, but it fails in confusing ways because the clone is not at the expected location
${GOPATH}/src/github.com/oragono
This is a *nix-only solution, but I think a better alternative to the current build system would be a script like this:
#!/bin/bash
set -eux
set -o pipefail
export GOPATH=${HOME}/go
mkdir -p ${GOPATH}/src/github.com/oragono
cd ${GOPATH}/src/github.com/oragono
git clone https://github.com/oragono/oragono
cd oragono
git submodule update --init
go install -v
echo successfully installed as ${GOPATH}/bin/oragonoexcept it would somehow respect the location of the current clone, like it would compare readlink -f . and readlink -f ${GOPATH}/src/github.com/oragono/oragono and error if they are not the same, rather than trying to reclone every time.
Reactions are currently unavailable