登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
2025 Gitee 年度开源项目评选投票进行中,快为你的心仪项目助力!
代码拉取完成,页面将自动刷新
仓库状态说明
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
8
Star
7
Fork
98
src-openEuler
/
golang
关闭
代码
Issues
4
Pull Requests
3
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
openEuler 20.03-LTS-SP1 golang需要升级到1.15.7版本
已完成
#I3B1LK
任务
DCCooper
创建于
2021-03-11 21:19
# golang升级接口变更分析 ## 背景 20.03-LTS-SP1目前golang的版本**过低**(1.13.3),上游社区已经**不再维护** 老版本的CVE没有补丁,需要从高版本回合,但是在改动较大,或者涉及runtime等底层修改的情况下,回合与验证比较困难。我们希望升级到golang-1.15.7。 ## 版本变化 Go1范围内升级:1.**13**.3 --> 1.**15**.7 ## 差异分析 golang-1.14和1.15都确保**Go1兼容性**:the release maintains the Go 1 promise of compatibility。 ## Go1.14 golang-1.14关键特性包括:goroutine支持异步抢占,defer性能优化,定时器性能优化等。 > 参考: > > https://golang.org/doc/go1.14 > > https://learnku.com/go/t/40984 ### 删除接口 - crypto/tls:**不再支持**SSL version 3.0 (SSLv3),被TLS 1.3全面替代。 https://github.com/golang/go/issues/32716 SSLv3 has been irreparably broken since the POODLE attack 5 years ago.  ### 变更接口 - go get 命令行不再支持-mod选项。根据go.mod文件和vendor目录是否存在自动推断。 - go test -v采用流式输出,以前是在所有测试都结束后才会打印输出。 - go list -m不再忽略vendor中没有提供包的依赖,发现会报错。该命令很少使用。 - 标准库encoding/json: Compact()不再转义U+2028 and U+2029字符,如果希望转义,可以调用HTMLEscape()、Number()不再支持无效数字 ### 新增接口 无 --- ## Go1.15 golang-1.15关键特性包括链接器改进,新增标准库time/tzdata。 > 参考:https://golang.org/doc/go1.15 ### 删除接口 语言层面无变更:There are no changes to the language. ### 变更接口 - 标准库io/ioutil:Tempdir参数模式不支持含有路径分隔符(安全增强) - 标准库:弃用将X.509CommonName作为主机名,可以通过设置x509ignoreCN=0临时开启 > 参考:https://github.com/golang/go/issues/39568 ### 新增接口 - tzdata:增加tzdata包(将时区数据嵌入到Go应用二进制文件中) ## 影响分析 经分析,本次golang升级涉及剔除不安全协议、CVE修复,客户感知小,版本提升大,申请在openEuler 20.03-LTS-SP1中进行升级。 ### 遗留问题 - 软件包涉及梳理(编译) - 软件包显示调用接口梳理 ## 遗留问题分析 ### 涉及组件 openEuler-20.03-LTS-SP1中,使用golang作为编译依赖的包一共28款,其中EPOL类软件6款。 | 类型 | 软件包 | | -------- | ------------------------------------------------------------ | | 常规软件 | A-Tune、audit、authz、containerd、containernetworking-plugins、docker、go-compilers、golang、golang-github-cpuguy83-go-md2man、golang-github-russross-blackfriday、isula-build、iSulad-img、isula-transform、kata-containers、libnetwork、lxcfs-tools、podman、runc、skopeo、syscontainer-tools、thrift、umoci | | EPOL | startdde、deepin-dbus-generator、dde-daemon、dde-api、deepin-desktop-schemas、kubernetes | ### 编译问题 在升级golang至1.15.7之后,有**10款**软件无法正常编译,其中**8款**在解决go-compilers编译问题之后可以顺利编译 - 常规软件: | 软件包 | 备注 | | ---------------------------------- | ---------------- | | A-Tune | 自身编译问题 | | go-compilers | 自身编译问题 | | golang-github-cpuguy83-go-md2man | 依赖go-compilers | | golang-github-russross-blackfriday | 依赖go-compilers | | containernetworking-plugins | 依赖go-compilers | | podman | 依赖go-compilers | | skopeo | 依赖go-compilers | - EPOL: | 软件包 | 备注 | | --------------------- | ---------------- | | deepin-dbus-generator | 依赖go-compilers | | dde-daemon | 依赖go-compilers | | dde-api | 依赖go-compilers | ### 修复建议 需要 **A-Tune**(@hanxinke)、**go-compilers**(@ultra_planet)软件包owner进行修复 #### A-Tune 报错:go: inconsistent vendoring in /home/abuild/rpmbuild/BUILD/A-Tune 建议使用 `go mod vendor`更新源码包中的go.mod文件进行适配。 #### go-compilers 报错:unexpected directory layout 尝试处理golist问题。
# golang升级接口变更分析 ## 背景 20.03-LTS-SP1目前golang的版本**过低**(1.13.3),上游社区已经**不再维护** 老版本的CVE没有补丁,需要从高版本回合,但是在改动较大,或者涉及runtime等底层修改的情况下,回合与验证比较困难。我们希望升级到golang-1.15.7。 ## 版本变化 Go1范围内升级:1.**13**.3 --> 1.**15**.7 ## 差异分析 golang-1.14和1.15都确保**Go1兼容性**:the release maintains the Go 1 promise of compatibility。 ## Go1.14 golang-1.14关键特性包括:goroutine支持异步抢占,defer性能优化,定时器性能优化等。 > 参考: > > https://golang.org/doc/go1.14 > > https://learnku.com/go/t/40984 ### 删除接口 - crypto/tls:**不再支持**SSL version 3.0 (SSLv3),被TLS 1.3全面替代。 https://github.com/golang/go/issues/32716 SSLv3 has been irreparably broken since the POODLE attack 5 years ago.  ### 变更接口 - go get 命令行不再支持-mod选项。根据go.mod文件和vendor目录是否存在自动推断。 - go test -v采用流式输出,以前是在所有测试都结束后才会打印输出。 - go list -m不再忽略vendor中没有提供包的依赖,发现会报错。该命令很少使用。 - 标准库encoding/json: Compact()不再转义U+2028 and U+2029字符,如果希望转义,可以调用HTMLEscape()、Number()不再支持无效数字 ### 新增接口 无 --- ## Go1.15 golang-1.15关键特性包括链接器改进,新增标准库time/tzdata。 > 参考:https://golang.org/doc/go1.15 ### 删除接口 语言层面无变更:There are no changes to the language. ### 变更接口 - 标准库io/ioutil:Tempdir参数模式不支持含有路径分隔符(安全增强) - 标准库:弃用将X.509CommonName作为主机名,可以通过设置x509ignoreCN=0临时开启 > 参考:https://github.com/golang/go/issues/39568 ### 新增接口 - tzdata:增加tzdata包(将时区数据嵌入到Go应用二进制文件中) ## 影响分析 经分析,本次golang升级涉及剔除不安全协议、CVE修复,客户感知小,版本提升大,申请在openEuler 20.03-LTS-SP1中进行升级。 ### 遗留问题 - 软件包涉及梳理(编译) - 软件包显示调用接口梳理 ## 遗留问题分析 ### 涉及组件 openEuler-20.03-LTS-SP1中,使用golang作为编译依赖的包一共28款,其中EPOL类软件6款。 | 类型 | 软件包 | | -------- | ------------------------------------------------------------ | | 常规软件 | A-Tune、audit、authz、containerd、containernetworking-plugins、docker、go-compilers、golang、golang-github-cpuguy83-go-md2man、golang-github-russross-blackfriday、isula-build、iSulad-img、isula-transform、kata-containers、libnetwork、lxcfs-tools、podman、runc、skopeo、syscontainer-tools、thrift、umoci | | EPOL | startdde、deepin-dbus-generator、dde-daemon、dde-api、deepin-desktop-schemas、kubernetes | ### 编译问题 在升级golang至1.15.7之后,有**10款**软件无法正常编译,其中**8款**在解决go-compilers编译问题之后可以顺利编译 - 常规软件: | 软件包 | 备注 | | ---------------------------------- | ---------------- | | A-Tune | 自身编译问题 | | go-compilers | 自身编译问题 | | golang-github-cpuguy83-go-md2man | 依赖go-compilers | | golang-github-russross-blackfriday | 依赖go-compilers | | containernetworking-plugins | 依赖go-compilers | | podman | 依赖go-compilers | | skopeo | 依赖go-compilers | - EPOL: | 软件包 | 备注 | | --------------------- | ---------------- | | deepin-dbus-generator | 依赖go-compilers | | dde-daemon | 依赖go-compilers | | dde-api | 依赖go-compilers | ### 修复建议 需要 **A-Tune**(@hanxinke)、**go-compilers**(@ultra_planet)软件包owner进行修复 #### A-Tune 报错:go: inconsistent vendoring in /home/abuild/rpmbuild/BUILD/A-Tune 建议使用 `go mod vendor`更新源码包中的go.mod文件进行适配。 #### go-compilers 报错:unexpected directory layout 尝试处理golist问题。
评论 (
1
)
登录
后才可以发表评论
状态
已完成
待办的
进行中
已完成
已拒绝
负责人
未设置
标签
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (30)
标签 (55)
master
openEuler-24.03-LTS-SP2
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-Next
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS-SP3
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-24.03-LTS
openEuler-25.09
openEuler-25.03
openEuler-24.09
openEuler-22.03-LTS-SP1
openEuler-22.03-LTS-SP2
openEuler-22.03-LTS-Next
openEuler-20.03-LTS-SP1
openEuler-22.03-LTS
openEuler-20.03-LTS-SP3
openEuler-23.09
openEuler-23.03
openEuler-22.09
openEuler-22.03-LTS-LoongArch
openEuler-20.03-LTS-SP2
openEuler-20.03-LTS
openEuler-21.03
openEuler-20.09
openEuler-20.03-LTS-Next
openEuler-21.09
openEuler1.0
openEuler1.0-base
openEuler-25.09-release
openEuler-24.03-LTS-update-20250919
openEuler-24.03-LTS-SP1-update-20250919
openEuler-24.03-LTS-SP2-update-20250919
openEuler-24.03-LTS-update-20250912
openEuler-20.03-LTS-SP4-update-20250905
openEuler-22.03-LTS-SP4-update-20250905
openEuler-22.03-LTS-SP3-update-20250905
openEuler-24.03-LTS-SP1-update-20250905
openEuler-24.03-LTS-SP2-update-20250829
openEuler-24.03-LTS-SP2-update-20250711
openEuler-20.03-LTS-SP4-update-20250704
openEuler-22.03-LTS-SP3-update-20250704
openEuler-22.03-LTS-SP4-update-20250704
openEuler-24.03-LTS-update-20250704
openEuler-24.03-LTS-SP1-update-20250704
openEuler-24.03-LTS-SP2-release
openEuler-24.03-LTS-update-20250418
openEuler-22.03-LTS-SP3-update-20250418
openEuler-24.03-LTS-SP1-update-20250418
openEuler-22.03-LTS-SP4-update-20250418
openEuler-20.03-LTS-SP4-update-20250418
openEuler-25.03-release
openEuler-24.03-LTS-update-20250228
openEuler-24.03-LTS-SP1-update-20250228
openEuler-22.03-LTS-SP3-update-20250228
openEuler-20.03-LTS-SP4-update-20250228
openEuler-24.03-LTS-SP1-release
openEuler-22.03-LTS-SP4-update-20241227
openEuler-24.03-LTS-update-20241206
openEuler-22.03-LTS-SP1-update-20241115
openEuler-20.03-LTS-SP4-update-20241115
openEuler-22.03-LTS-SP3-update-20241115
openEuler-24.03-LTS-update-20241115
openEuler-22.03-LTS-SP4-update-before-20241025
openEuler-22.03-LTS-SP4-release
openEuler-24.09-release
openEuler-24.03-LTS-release
openEuler-22.03-LTS-SP3-release
openEuler-23.09-rc5
openEuler-22.03-LTS-SP1-release
openEuler-22.09-release
openEuler-22.09-rc5
openEuler-22.09-20220829
openEuler-22.03-LTS-20220331
openEuler-22.03-LTS-round5
openEuler-22.03-LTS-round3
openEuler-22.03-LTS-round2
openEuler-22.03-LTS-round1
openEuler-20.03-LTS-SP3-release
openEuler-20.03-LTS-SP2-20210624
openEuler-21.03-20210330
openEuler-20.09-20200929
openEuler-20.03-LTS-20200606
openEuler-20.03-LTS-tag
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
1
https://gitee.com/src-openeuler/golang.git
git@gitee.com:src-openeuler/golang.git
src-openeuler
golang
golang
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册