Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Running Go + AWS example

オープン
#647 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
aws, go
領域
backend, cloud

調査の方向性

aws-golang-http-get-post の例と現在の dep ベースの構成から始め、報告された PR と提案されている go.mod ベースの構造を確認します。この例が最新の Go モジュールで動作すること、およびフォルダー構成が一般的な Go モジュールの規約に従っていることを確認します。

索引モデルが issue の本文から書いたものです。

説明

I tried to run the following example (https://github.com/serverless/examples/tree/master/aws-golang-http-get-post), but hit a few roadblocks on the way and could not get it to work:

1. "dep" command not found

to solve this, i followed the instructions here: https://forum.serverless.com/t/trying-to-get-serverless-golang-example-to-work/5676, so running "go get -v -u github.com/golang/dep/cmd/dep".
However, dep does not install anymore, with the following error:

# github.com/golang/dep/gps
../../../go/pkg/mod/github.com/golang/[email protected]/gps/constraint.go:103:21: cannot use sv (type *semver.Version) as type semver.Version in field value
../../../go/pkg/mod/github.com/golang/[email protected]/gps/constraint.go:122:16: invalid type assertion: c.(semver.Version) (non-interface type *semver.Constraints on left)
../../../go/pkg/mod/github.com/golang/[email protected]/gps/constraint.go:149:4: undefined: semver.Constraint

2. "dep" is deprecated and it is not possible to install it anymore

Looking into it, it seems that the dep package is abandoned and replaced by go modules instead: https://github.com/golang/dep

So my follow up question would be: Do you have any go + aws examples using modern go with modules or would it be easily possible to convert the current examples (I assume using a go.mod file instead would probably work).

Update: I submitted a PR that will make it compile again, but I think the examples need a deeper structural change to confirm to typical go modules folder structures.

主要言語
JavaScript
スター
11.5k
フォーク
4.4k
平均マージ
2時間 12分
マージ済み PR(30日)
4

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

serverless/examples のほかの issue

serverless/examples の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。