windows10 go言語をアップデートする

windows10 go言語をアップデートする

windows10で、Chocoleteyでインストールしたgo言語をアップデートする手順を記述してます。

環境

  • OS windows10 pro 64bit
  • Chocoletey 0.10.15

go言語アップデート

まずはChocoleteyをアップデートしておきます。

choco upgrade chocolatey

次に以下のコマンドを実行すると、アップデートが開始されます。

choco upgrade golang

<出力結果>
Chocolatey v0.10.15
Upgrading the following packages:
golang
By upgrading you accept licenses for the packages.

You have golang v1.13.8 installed. Version 1.15.4 is available based on your source(s).
Progress: Downloading golang 1.15.4... 100%

golang v1.15.4 [Approved]
golang package files upgrade completed. Performing other installation steps.
The package golang wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation

「y」を入力するとインストールが開始されます。

Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): y

インストール完了後に、バージョンを確認するとアップデートされていることが確認できます。

go version

<出力結果>
go version go1.15.4 windows/amd64