missing go.sum entry for module providing package error goleng

Foreword
After downloading other people’s code from github, execute it directly, and report missing go.sum entry for module providing package error

problem analysis
A third-party library is used in the code, but go.mod is not updated accordingly

Solution

go mod tidy


Open the terminal in the project directory and execute go mod tidy to solve it. This command will delete unnecessary dependencies, download new dependencies, and update go.sum

Leave a Reply

Your email address will not be published. Required fields are marked *

en_USEnglish