Running Go + AWS example
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia con l'esempio aws-golang-http-get-post e la sua configurazione attuale basata su dep, quindi esamina la PR segnalata e la struttura proposta basata su go.mod. Verifica che l'esempio funzioni con i moduli Go moderni e che la disposizione delle cartelle segua le convenzioni tipiche dei moduli Go.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- JavaScript
- Stelle
- 11.5k
- Fork
- 4.4k
- Merge medio
- 2h 55m
- PR unite (30g)
- 3
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di serverless/examples
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
serverless/examples#404 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
serverless/examples#809 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 30/100
serverless/examples#793 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
serverless/examples#784 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
serverless/examples#782 ·
Tutte le issue di serverless/examples
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
TheOdinProject/curriculum#31423 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
WGBH-MLA/dream-aapb#69 ·
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
Mintplex-Labs/anything-llm#6490 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
openlayers/ol-cesium#1364 ·