Tomo-9925 / cnet

Controlling and logging communication of process in Docker container
2 stars 0 forks source link

CIがエラーを吐いていた修正 #18

Closed masibw closed 3 years ago

masibw commented 3 years ago
 Error: Unable to process command '::set-env name=GOROOT::/opt/hostedtoolcache/go/1.15.4/x64' successfully.
  Error: The `set-env` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
  Error: Unable to process command '::add-path::/opt/hostedtoolcache/go/1.15.4/x64/bin' successfully.
  Error: The `add-path` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

というエラーをCIが吐いていて、どうやらgithub actionsで非推奨になったものがあるみたいです。 直接的に使用している覚えがないのでライブラリのアップデートで治るんじゃないか(適当)って感じです

何が原因か最初不明だったので、ついでにGoのバージョンを1.15.3へ上げました(本来別のPRに分けるべきですね、すいません)

直接的な解決策としてはgolangci-lintのバージョンを最新版(v.1.2.9)へ更新することで解決しました