Closed Nr18 closed 1 year ago
The go version 1.14.15 sounds like the environment is pretty old and I would assume that's why it's not working. Have you tried upgrading golang to a later version?
@mrueg you are the man!
Solution was to update the CodeBuild environment, because aws/codebuild/amazonlinux2-x86_64-standard:3.0
only supported older versions of go:
Type: LINUX_CONTAINER
ComputeType: BUILD_GENERAL1_SMALL
Image: aws/codebuild/amazonlinux2-x86_64-standard:5.0
PrivilegedMode: true
Next in the buildspec.yml
I selected the newer runtimes:
phases:
install:
runtime-versions:
python: 3.11
nodejs: 18
golang: 1.20
And I switched back to:
go install github.com/kovetskiy/mark@9.7.0
That solved my problem, thanks!
Great to hear it's working! Be aware that you might need to quote the go version, as in yaml 1.20 is treated as a number and the parser might return 1.2.
What happened? I am trying to install
mark
in a AWS CodeBuild environment and I get the following error:What did you expect to happen? That the binary would be installed and usable within the CodeBuild environment.
How can we reproduce the behavior you experienced? Steps to reproduce the behavior:
In case this is related to specific markdown, please provide a minimal markdown example here.
Information (please complete the following information):
mark --version
): 9.7.0Logs or other output
Additional context N/A