在golang中如何将已安装的依赖降级处理,比如:将 go-ansible/[email protected] 更换为 go-ansible/@v1.1.7
在Go项目中降级go-ansible从v2.2.0到v1.1.7具体步骤:第一步:修改go.mod文件//原v2版本声明requiregithub.com/apenella/go-ansible/v2v2.2.0替换为://改为v1版本声明requiregithub.com/apenella/go-ansible/v1v1.1.7更新依赖gogetgithub.com/apenella/go-an