{"id":304,"date":"2022-03-29T10:10:38","date_gmt":"2022-03-29T02:10:38","guid":{"rendered":"https:\/\/www.db2go.net\/?p=304"},"modified":"2022-03-29T10:12:54","modified_gmt":"2022-03-29T02:12:54","slug":"%e5%8d%87%e7%ba%a7%e5%88%b0go1-18%e5%90%8e%ef%bc%8c%e7%bc%96%e8%af%91%e6%8a%a5%e9%94%99%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.db2go.net\/?p=304","title":{"rendered":"\u5347\u7ea7\u5230Go1.18\u540e\uff0c\u7f16\u8bd1\u62a5\u9519\u7684\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"<p>\u5347\u7ea7\u5230Go1.18\u7248\u672c\u540e\uff0c\u7f16\u8bd1\u65f6\u62a5\u9519\uff0c\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"line-numbers\"># golang.org\/x\/sys\/unix\n..\/vendor\/golang.org\/x\/sys\/unix\/syscall_darwin.1_13.go:25:3: \/\/go:linkname must refer to declared function or variable\n..\/vendor\/golang.org\/x\/sys\/unix\/zsyscall_darwin_amd64.1_13.go:27:3: \/\/go:linkname must refer to declared function or variable\n..\/vendor\/golang.org\/x\/sys\/unix\/zsyscall_darwin_amd64.1_13.go:40:3: \/\/go:linkname must refer to declared function or variable\n..\/vendor\/golang.org\/x\/sys\/unix\/zsyscall_darwin_amd64.go:28:3: \/\/go:linkname must refer to declared function or variable\n..\/vendor\/golang.org\/x\/sys\/unix\/zsyscall_darwin_amd64.go:43:3: \/\/go:linkname must refer to declared function or variable\n..\/vendor\/golang.org\/x\/sys\/unix\/zsyscall_darwin_amd64.go:59:3: \/\/go:linkname must refer to declared function or variable\n..\/vendor\/golang.org\/x\/sys\/unix\/zsyscall_darwin_amd64.go:75:3: \/\/go:linkname must refer to declared function or variable\n..\/vendor\/golang.org\/x\/sys\/unix\/zsyscall_darwin_amd64.go:90:3: \/\/go:linkname must refer to declared function or variable\n..\/vendor\/golang.org\/x\/sys\/unix\/zsyscall_darwin_amd64.go:105:3: \/\/go:linkname must refer to declared function or variable\n..\/vendor\/golang.org\/x\/sys\/unix\/zsyscall_darwin_amd64.go:121:3: \/\/go:linkname must refer to declared function or variable\n..\/vendor\/golang.org\/x\/sys\/unix\/zsyscall_darwin_amd64.go:121:3: too many errors\n<\/code><\/pre>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n<pre><code class=\"line-numbers\">go get -u golang.org\/x\/sys\n<\/code><\/pre>\n<p>\u6548\u679c\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"line-numbers\">\u279c  server ~<span class=\"katex math inline\">go get -u golang.org\/x\/sys\n\ngo: downloading golang.org\/x\/sys v0.0.0-20220328115105-d36c6a25d886\ngo: upgraded golang.org\/x\/sys v0.0.0-20200116001909-b77594299b42 =&gt; v0.0.0-20220328115105-d36c6a25d886\n\u279c  server ~<\/span> go run main.go            \ngo: inconsistent vendoring in \/Users\/makesure10\/Desktop\/goworkspace\/src\/ddagent:\n        golang.org\/x\/sys@v0.0.0-20220328115105-d36c6a25d886: is explicitly required in go.mod, but not marked as explicit in vendor\/modules.txt\n        golang.org\/x\/sys@v0.0.0-20200116001909-b77594299b42: is marked as explicit in vendor\/modules.txt, but not explicitly required in go.mod\n\n        To ignore the vendor directory, use -mod=readonly or -mod=mod.\n        To sync the vendor directory, run:\n                go mod vendor\n\u279c  server ~<span class=\"katex math inline\">go mod vendor \n\u279c  server ~<\/span> go run main.go\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5347\u7ea7\u5230Go1.18\u7248\u672c\u540e\uff0c\u7f16\u8bd1\u65f6\u62a5\u9519\uff0c\u5982\u4e0b\uff1a # golang.org\/x\/sys\/unix ..\/vendo&hellip;<\/p>\n <a href=\"https:\/\/www.db2go.net\/?p=304\" title=\"\u5347\u7ea7\u5230Go1.18\u540e\uff0c\u7f16\u8bd1\u62a5\u9519\u7684\u89e3\u51b3\u65b9\u6cd5\" class=\"entry-more-link\"><span>Read More<\/span> <span class=\"screen-reader-text\">\u5347\u7ea7\u5230Go1.18\u540e\uff0c\u7f16\u8bd1\u62a5\u9519\u7684\u89e3\u51b3\u65b9\u6cd5<\/span><\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":"","footnotes":""},"categories":[12],"tags":[],"class_list":["entry","author-suredandan","post-304","post","type-post","status-publish","format-standard","category-golang"],"views":2619,"_links":{"self":[{"href":"https:\/\/www.db2go.net\/index.php?rest_route=\/wp\/v2\/posts\/304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.db2go.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.db2go.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.db2go.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.db2go.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=304"}],"version-history":[{"count":5,"href":"https:\/\/www.db2go.net\/index.php?rest_route=\/wp\/v2\/posts\/304\/revisions"}],"predecessor-version":[{"id":309,"href":"https:\/\/www.db2go.net\/index.php?rest_route=\/wp\/v2\/posts\/304\/revisions\/309"}],"wp:attachment":[{"href":"https:\/\/www.db2go.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.db2go.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.db2go.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}