{"id":134640,"date":"2020-07-08T15:55:50","date_gmt":"2020-07-08T07:55:50","guid":{"rendered":"http:\/\/4563.org\/?p=134640"},"modified":"2020-07-08T15:55:50","modified_gmt":"2020-07-08T07:55:50","slug":"go-mod-tidy-%e5%af%b9%e4%ba%8e%e7%89%88%e6%9c%ac%e7%ae%a1%e7%90%86","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=134640","title":{"rendered":"go mod tidy \u5bf9\u4e8e\u7248\u672c\u7ba1\u7406"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  go mod tidy \u5bf9\u4e8e\u7248\u672c\u7ba1\u7406               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xmge <\/span>  <span><i><\/i> 13<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u53d1\u73b0 gomodule \u9879\u76ee\u4e2d\uff0c\u6267\u884c go mod tidy \u4f1a\u53d1\u751f\u8fd9\u6837\u7684\u9519\u8bef\uff0c<\/p>\n<pre><code>    github.com\/xormplus\/xorm tested by         github.com\/xormplus\/xorm.test imports         github.com\/go-xorm\/core: github.com\/go-xorm\/[email&#160;protected]: parsing go.mod:         module declares its path as: xorm.io\/core                 but was required as: github.com\/go-xorm\/core <\/code><\/pre>\n<p>\u4e8e\u662f\u627e\u5230\u4e24\u79cd\u65b9\u5f0f\u53bb\u89e3\u51b3\uff1a<\/p>\n<p>1.\u5168\u90e8\u5220\u9664\uff0c\u518d\u6267\u884c go mod tidy \u91cd\u65b0\u751f\u6210<\/p>\n<p>2.\u6dfb\u52a0 replace github.com\/go-xorm\/core v0.6.3 =&gt; xorm.io\/core v0.6.3<\/p>\n<p>\u4f46\u662f\u6267\u884c\u540e\uff0cgo.mod \u7248\u672c\u53d1\u751f\u4e86\u53d8\u5316\uff0c\u65e0\u6cd5\u505a\u5230\u548c\u4e4b\u524d\u7248\u672c\u4e00\u81f4\uff0c\u8fd9\u4e2a\u95ee\u9898\u5927\u5bb6\u662f\u5982\u4f55\u89e3\u51b3\u7684\u5462\uff1f\u8fd8\u662f\u8fd9\u79cd\u7528\u6cd5\u5c31\u662f\u9519\u8bef\u7684\uff0cgo mod tidy \u53ea\u80fd\u5728\u9879\u76ee\u521d\u671f\u4f7f\u7528\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>2<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"2406722\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : reus <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u51fa\u9519\u4fe1\u606f\u5df2\u7ecf\u8bf4\u4e86\uff0c\u90a3\u4e2a\u6a21\u5757\u662f xorm.io\/core \u4f46\u4ee3\u7801\u91cc\u7528\u4e86 github \u7684\u5730\u5740<\/p>\n<p>\u662f go mod \u58f0\u660e\u548c import \u5730\u5740\u4e0d\u4e00\u81f4\u7684\u95ee\u9898\uff0c\u5168\u90e8\u6539\u6210\u4e00\u6837\u7684\u5c31\u884c                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2406723\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : xmge <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @reus \u55ef\u55ef\uff0c\u8fd9\u4e2a\u53ef\u4ee5\u8fd9\u6837\u6539\uff0c\u90a3 go mod tidy \u8fd8\u80fd\u6267\u884c\u5417\uff1f\u6267\u884c\u4e86\u7248\u672c\u53c8\u53d8\u5316\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>go mod tidy \u5bf9\u4e8e\u7248\u672c\u7ba1&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/134640"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=134640"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/134640\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=134640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=134640"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=134640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}