Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Updating the README with correct instructions

未关闭
#6 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
20/100
Issue 类型
文档
描述清晰度
需要澄清
活跃度
停滞
技术栈
aws, elixir

调研方向

先从 README 中关于 mix do release, bootstrap, zip 的说明开始,并将其与报告中提到的 Distillery release 命令进行比较。然后检查 bootstrap 和 Lambda 日志,尤其是尝试写入 /var/task 下的操作;当 README 提供一条经过验证、能够避免所报告失败的构建和部署路径时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

Hello there,

While cloning the project and following the instructions I'm getting this error:

|> mix do release, bootstrap, zip
warning: String.strip/1 is deprecated. Use String.trim/1 instead
  /Users/h/workspace/aws-lambda-elixir-runtime/examples/hello_world/deps/poison/mix.exs:4

==> poison
Compiling 4 files (.ex)
warning: Integer.to_char_list/2 is deprecated. Use Integer.to_charlist/2 instead
  lib/poison/encoder.ex:173

Generated poison app
==> aws_lambda_elixir_runtime
Compiling 15 files (.ex)
Generated aws_lambda_elixir_runtime app
==> artificery
Compiling 10 files (.ex)
Generated artificery app
==> distillery
Compiling 33 files (.ex)
Generated distillery app
==> hello_world
Compiling 1 file (.ex)
Generated hello_world app
** (Mix) The task "release" could not be found

I managed to compile something by using the distillery release command instead (and replacing the relevant parts), however, I feel that it's not the way to go, as I got this error while hitting the lambda:

START RequestId: e8fdcb89-d349-4d36-b392-fcf95e9cd250 Version: $LATEST
++ dirname /var/task/bootstrap
+ BASE=/var/task
+ EXE=/var/task/bin/hello_world
+ HOME=/tmp
+ export HOME
+ export RELEASE_READ_ONLY=true
+ RELEASE_READ_ONLY=true
+ export LD_LIBRARY_PATH=/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib:/opt/lib:/var/task/lib/elixir_runtime-0.1.0/priv
+ LD_LIBRARY_PATH=/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib:/opt/lib:/var/task/lib/elixir_runtime-0.1.0/priv
+ /var/task/bin/hello_world foreground
mkdir: cannot create directory ‘/var/task/var’: Read-only file system
END RequestId: e8fdcb89-d349-4d36-b392-fcf95e9cd250
REPORT RequestId: e8fdcb89-d349-4d36-b392-fcf95e9cd250	Duration: 231.23 ms	Billed Duration: 300 ms 	Memory Size: 128 MB	Max Memory Used: 13 MB	
RequestId: e8fdcb89-d349-4d36-b392-fcf95e9cd250 Error: Runtime exited with error: exit status 1
Runtime.ExitError

Please, can we get some insights on this one?

主要语言
Elixir
星标
129
派生
31
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aws-samples/aws-lambda-elixir-runtime 的其他 Issue

查看 aws-samples/aws-lambda-elixir-runtime 的全部 Issue

相似的 Issue

更多 Elixir Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。