GoogleCloudPlatform / golang-samples

Sample apps and code written for Google Cloud in the Go programming language.
Apache License 2.0
4.29k stars 1.73k forks source link

getting-started/sessions: github.com/GoogleCloudPlatform/firestore-gorilla-sessions is no longer maintained #4280

Open gecko655 opened 2 months ago

gecko655 commented 2 months ago

In which file did you encounter the issue?

https://github.com/GoogleCloudPlatform/golang-samples/blob/fa24a26ce9a0ad90efc8771472c7c1c57393cc9f/getting-started/sessions/go.mod#L7

Did you change the file? If so, how?

N/A

Describe the issue

The repository https://github.com/GoogleCloudPlatform/firestore-gorilla-sessions has been archived since 2022 and the last commit to the repository was 5 years ago.

It seems to be inappropriate to choose to use the firestore-gorilla-sessions library at this moment and the getting-stared/sessions example should be updated to the modern implementation, at least the example should not use firestore-gorilla-sessions.

The example is also displayed at the official document: https://cloud.google.com/go/getting-started/session-handling-with-firestore

subfuzion commented 2 months ago

Hi @gecko655 I noticed this comment about Gorilla Sessions being in flux until the Go v1.23 release. I also noticed under store implementations that they're still linking to firestore-gorilla-sessions.

Assuming holding off until gorilla/sessions stabilizes for the 1.23 release, are you suggesting using any particular store backend as a replacement, or are you suggesting using something altogether different from gorilla/sessions?

gecko655 commented 1 month ago

My understanding is that gorilla/sessions will continue developing, but GoogleCloudPlatform/firestore-gorilla-sessions seemed to have stopped being maintained.

There is still a link to GoogleCloudPlatform/firestore-gorilla-sessions in the README of the gorilla/sessions repository. However, this does not seem to imply that GoogleCloudPlatform/firestore-gorilla-sessions maintenance will continue in the future. It merely list the community maintained implementations that exist.

Since this repository itself belongs to the GoogleCloudPlatform organization, I believe the possible alternatives are one of the following: