Commit graph

26 commits

Author SHA1 Message Date
Andy Feller
b5867208a1 Update missed Go 1.23 references 2025-06-23 09:58:06 -04:00
William Martin
113fe646f3 Bump go module version to 1.23 2025-01-22 12:10:03 +01:00
Naoya Yasuda
5d79a95a32
Upgrade to Go 1.22 (#8836) 2024-04-02 14:34:59 +02:00
Sam Coe
4a57a812f5
Upgrade to Go 1.21 (#7843) 2023-08-16 10:37:58 -07:00
Mislav Marohnić
ba4d50452d
Update to Go 1.19
With this upgrade our codebase adopts the stricter handling of `os/exec` command lookup in it that it doesn't allow shelling out to a command in the current directory.
2022-12-12 15:50:13 +01:00
Clarence "Sparr" Risher
846a147b56 Mention possible need for sudo -E to run make install 2022-08-23 15:19:53 +00:00
Sam Coe
597eb16a83
Upgrade to go 1.18 (#5542) 2022-05-09 18:46:19 +02:00
dimas
0007dce7f7 fixing numbering in project-layout and source docs for consistency. 2021-10-22 01:29:53 +07:00
Mislav Marohnić
eb78ac0dcb Require Go 1.16+ 2021-08-23 18:08:09 +02:00
Mislav Marohnić
d43720620e Tweak build scripts to enable cross-compiling
The main build script for this project is `script/build.go` which
implements Makefile-like building of the `gh` binary and associated man
pages. Our Makefile defers to the Go script.

However, when setting GOOS, GOARCH, and other environment variables to
modify the target for the resulting binary, these environment variables
would affect the execution of `build.go` as well, which was unintended.

This tweaks our Makefile to reset variables like GOOS and GOARCH when
building the `build.go` script itself, ensuring that the built script
runs on the same platform, and adds the ability to pass environment
variables as arguments to `go run script/build.go`. This allows the
following usage on platforms without `make`:

    go run script/build.go GOOS=linux

With this style of invocation, the GOOS setting does not actually affect
`go run` itself; just the `go build` that is executed in a child process.
2021-04-09 15:48:12 +02:00
Mislav Marohnić
39431a101d Port select portions of Makefile to script/build.go
This is to enable build tasks on Windows.
2021-01-08 22:35:57 +01:00
Mislav Marohnić
5e97775978
Clarify building from source on Windows
Address https://github.com/cli/cli/issues/2545#issuecomment-751842548
2021-01-06 18:08:02 +01:00
Mislav Marohnić
6f689ff051 Document make install 2020-12-01 20:31:20 +01:00
Mislav Marohnić
176dd29c05 Clarify our Go version requirements
* We are trying to keep the binary building on Go 1.13 to support building the project on Ubuntu 20.04 LTS
* Go 1.14+ is required to run the test suite
* We build our releases on Go 1.15

This adds a CI check that verifies that the project compiles on 1.13
2020-08-28 14:05:50 +02:00
Nate Smith
8a5be0fabf
Update source.md 2020-08-14 09:30:44 -05:00
Shoma Okamoto
bcc1b433ab bump go version to 1.15 in docs 2020-08-14 10:00:04 +09:00
danshearer
9b890d9a10 Reduce minimum reuqired version from 1.14 to 1.13.8. This is the version
that ships with Ubuntu 20.04 Long Term Support release and it seems to
work fine.
2020-07-04 16:14:47 +01:00
Nate Smith
399c6ec9e8
Update source.md 2020-06-01 12:18:27 -05:00
gabgodBB
56885c5468
Update source.md 2020-05-30 10:15:11 -03:00
gabgodBB
4a0543fd18
Update docs/source.md
Done

Co-authored-by: Youssef Victor <31348972+Youssef1313@users.noreply.github.com>
2020-05-30 10:14:22 -03:00
gabgodBB
92f12b7c68
Update source.md
removing extra line
2020-05-30 10:14:02 -03:00
gabgodBB
dbd9bb44df
Update source.md 2020-05-30 10:03:42 -03:00
gabgodBB
87e3edb862 Include 'go' instruction 2020-05-29 17:28:50 -03:00
Mislav Marohnić
e3676c3a95 Change source installation docs to avoid suggesting to change PATH 2020-05-14 18:32:57 +02:00
Mislav Marohnić
0eb471899a Upgrade to Go 1.14 in CI 2020-05-07 21:03:42 +02:00
Billy Griffin
f32235aa08 Move docs to docs folder
The docs were just hanging out in the top level repo and we thought it'd be nicer to start to organize them together.
2020-03-10 12:52:01 -06:00
Renamed from source.md (Browse further)