Aws-sam-cli: go1.x unsupported error

Created on 15 Dec 2018  路  4Comments  路  Source: aws/aws-sam-cli

Description

The latest version of the runtime installed with pip3 reports that go1.x runtime is not supported.

Steps to reproduce

Attempt to build the default go hello-world project.

Observed result

https://gist.github.com/aidanh010/a87abd2d63ce8e42c9649cd6ebc35656

Expected result

Should build correctly as this is default code and the go1.x is listed as supported in readme.

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: Windows 10 Eduation, build 17134.471
  2. sam --version: SAM CLI, version 0.9.0

Most helpful comment

Figured it out thanks to AWS Developers Slack. Go isn't supported for build only, I wish the error message was clearer.

All 4 comments

Figured it out thanks to AWS Developers Slack. Go isn't supported for build only, I wish the error message was clearer.

This tripped me up for a bit until I found this issue report. Hope it gets resolved satisfactorily soon.

Figured it out thanks to AWS Developers Slack. Go isn't supported for build only, I wish the error message was clearer.

I was having reading comprehension issues, so rewording: sam build does not work for golang, but the rest of the sam commands do. Use the Makefile's make build command, which runs go build.

Related issues:
dep support: #888
modules support: #968

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dinvlad picture dinvlad  路  27Comments

charsleysa picture charsleysa  路  33Comments

enghwa picture enghwa  路  25Comments

alanchavez88 picture alanchavez88  路  53Comments

GeoffreyBooth picture GeoffreyBooth  路  29Comments