mehdihadeli / go-food-delivery-microservices

🍕 A practical and imaginary food delivery microservices, built with golang, domain-driven design, cqrs, event sourcing, vertical slice architecture, event-driven architecture, and the latest technologies.
MIT License
837 stars 85 forks source link

Upgrade package versions and Upgarde to go 1.21 #81

Closed mehdihadeli closed 1 year ago

Alan-MQ commented 1 year ago

in order to upgrade to go 21, we just modify go.mod at the second line to go 1.21? but actually I don't have a clue about how we upgrade package versions. for all packages? including pkg/ folder? that could cause some compatiable problem right?

let me try this one for now https://golang.cafe/blog/how-to-upgrade-golang-dependencies.html

mehdihadeli commented 1 year ago

Yes, just change the version in go.mod in each service and pkg module, also for GitHub action. Yes it is fine, maybe something like go get -u -t -d -v ./... for each service. After upgrading, the unit and integration tests should be pass as well.