You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git am --whitespace=nowarn ${{ github.workspace }}/$file
43
-
cd ${{ github.workspace }}/go/src
44
-
bash make.bash
45
-
${{ github.workspace }}/go/bin/go mod vendor
46
-
cd ${{ github.workspace }}/go/src/cmd
47
-
${{ github.workspace }}/go/bin/go mod vendor
48
-
cd ${{ github.workspace }}/go/src
49
-
# Check if the vendor directory is clean
50
-
git diff --exit-code vendor cmd/vendor || (echo "Vendor directories are not clean. Please run 'go mod vendor' in the appropriate directories and commit the changes." && exit 1)
51
-
echo "::endgroup::"
52
-
done
55
+
set -x
56
+
pwsh eng/run.ps1 build
57
+
cd ${{ github.workspace }}/go/src
58
+
${{ github.workspace }}/go/bin/go mod vendor
59
+
cd ${{ github.workspace }}/go/src/cmd
60
+
${{ github.workspace }}/go/bin/go mod vendor
61
+
cd ${{ github.workspace }}/go/src
62
+
# Check if the vendor directory is clean
63
+
git diff --exit-code vendor cmd/vendor || (echo "Vendor directories are not clean. Please run 'go mod vendor' in the appropriate directories and commit the changes." && exit 1)
**[microsoft/go-images](https://github.com/microsoft/go-images)** maintains and
84
-
documents container images that are available on Microsoft Artifact Registry.
85
-
86
-
### Azure Linux
87
-
88
-
The **[Azure Linux](https://github.com/microsoft/azurelinux)** distribution
89
-
includes the `golang` package, a build of this fork of Go.
90
-
91
-
For more information about how to manage the `systemcrypto` migration from 1.24
92
-
to 1.25 in Azure Linux 3, see
93
-
[the `systemcrypto` section of the Migration Guide](eng/doc/MigrationGuide.md#migration-to-systemcrypto).
94
-
95
-
### Ubuntu
96
-
97
-
To install the Microsoft build of Go using an Ubuntu package, first set up the [Linux package repository for Microsoft Products](https://learn.microsoft.com/en-us/linux/packages).
98
-
Packages are available in the Ubuntu 22.04 and 24.04 repositories.
99
-
100
-
After the repository is added, install the Microsoft build of Go by running the following commands:
The [`GoTool@0`](https://learn.microsoft.com/azure/devops/pipelines/tasks/reference/go-tool-v0) Azure Pipelines build task supports installing the Microsoft build of Go.
109
-
For more details, see [the GoTool@0 section of the Migration Guide](eng/doc/MigrationGuide.md#the-gotool0-azure-pipelines-task).
110
-
111
-
### The `go-install.ps1` script
112
-
113
-
The [cross-platform `go-install.ps1` script](https://github.com/microsoft/go-infra/tree/main/goinstallscript) installs the Microsoft build of Go.
114
-
It can install specific versions or the latest releases.
115
-
116
-
If you use Azure Pipelines, try running the script in a [script step](https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/cmd-line-v2?view=azure-pipelines) and pass the `-AzurePipelinePath` argument to automatically set up `go` in the environment for future steps.
117
-
118
-
### Binary archive
119
-
120
-
[Signed builds of Go](https://github.com/microsoft/go/blob/microsoft/main/eng/doc/Downloads.md)
121
-
for several platforms are available as `zip` and `tar.gz` files.
> The `zip` file that GitHub offers for download on the [microsoft/go releases page](https://github.com/microsoft/go/releases) is incomplete: it doesn't include the `go` submodule.
134
-
> Make sure to download the `.src.tar.gz` file instead, or [clone the repository using Git and set up the patched submodule](#clone-and-build).
135
-
136
-
#### Clone and build
137
-
138
-
First, clone this repository using Git and check out the desired tag or commit.
139
-
140
-
If you want to contribute to the Microsoft build of Go project, read the [Developer Guide](eng/doc/DeveloperGuide.md).
141
-
It lists the steps we recommend to set up a Microsoft build of Go development environment, execute your first build, run the standard library test suite, and contribute a PR.
142
-
143
-
If you just want to build on your own machine, you may find it more
144
-
convenient to use the tools provided by the `eng/run.ps1` script. We use this
145
-
script for CI builds. See [eng/README.md](eng/README.md) for more details about
146
-
`eng/run.ps1` and other repository infrastructure.
147
-
148
-
Once built, the Microsoft build of Go binary is found at `go/bin/go`.
60
+
We build the Microsoft build of Go toolset with the following OS/Arch combinations:
61
+
62
+
| OS |`amd64`|`arm64`|`armv6l`|
63
+
| --- | :---: | :---: | :---: |
64
+
|`linux`| ✓ | ✓ | ✓ |
65
+
|`windows`| ✓ | ✓ ||
66
+
|`darwin` (macOS) | ✓ | ✓ ||
67
+
68
+
Visit the [Migration Guide](eng/doc/MigrationGuide.md) for guidance about how we recommend migrating existing Go projects to use the Microsoft build of Go.
69
+
This guide also helps resolve commonly encountered issues.
70
+
71
+
The [Installation](eng/doc/Installation.md) documentation contains sections describing each of the following installation methods:
flag.BoolVar(&o.PackBuild, "packbuild", false, "Enable creating an archive of this build using upstream 'distpack' and placing it in eng/artifacts/bin.")
46
47
flag.BoolVar(&o.PackSource, "packsource", false, "Enable creating a source archive using upstream 'distpack' and placing it in eng/artifacts/bin.")
0 commit comments