iver-wharf / wharf-api

Wharf backend written in Go
MIT License
1 stars 0 forks source link

Go 1.18 #171

Closed applejag closed 2 years ago

applejag commented 2 years ago

Summary

Motivation

Swaggo doesn't support Go 1.18 yet (https://github.com/swaggo/swag/issues/1162) but I found a fork that has fixed it for Go 1.18 (https://github.com/rdlaitila/swag).

Wondering why rdlaitila haven't opened a PR on this yet as their fix is allegedly 13 days old now.

As a temporary workaround, I forked rdlaitila's repo and merged in the latest swaggo changes, changed the Go module to github.com/iver-wharf/swag, and then released it at https://github.com/iver-wharf/swag/releases/tag/v1.8.1.

I'll watch the issue to see when we can remove our fork. Maybe will also spend time creating a PR to swaggo based on rdlaitila's changes.

Edit: They were quick to merge https://github.com/swaggo/swag/pull/1168, so I changed to the new 1.8.1 version, and I've deleted our fork.