简体   繁体   English

Github Dependabot 推荐 Gemfile.lock 平台从 ruby 更改为 x86_64-linux。 诺科吉里 1.13.1 -> 1.13.9

[英]Github Dependabot recommending Gemfile.lock PLATFORMS change from ruby to x86_64-linux. Nokogiri 1.13.1 -> 1.13.9

# Gemfile.lock
- nokogiri (1.13.1)
-   mini_portile2 (~> 2.7.0)
+ nokogiri (1.13.9-x86_64-linux)

...

PLATFORMS
-  ruby
+  x86_64-linux

Hello.你好。 Dependabot is recommending a gem bump Nokogiri 1.13.1 -> 1.13.9 with the above diff. Dependabot 推荐使用具有上述差异的 gem bump Nokogiri 1.13.1 -> 1.13.9。

However I cannot figure out why dependabot is recommending the bump to x86_64 as opposed only 1.13.9, which appears to be an appropriate tag.但是我不明白为什么 dependabot 推荐升级到 x86_64 而不是 1.13.9,这似乎是一个合适的标签。 https://rubygems.org/gems/nokogiri/versions/1.13.9 https://rubygems.org/gems/nokogiri/versions/1.13.9

Additionally, I don't understand why PLATFORMS would require the above change.此外,我不明白为什么 PLATFORMS 需要进行上述更改。 Shouldn't the platform be specified on the specific nokogiri line if necessary at all?如果有必要,难道不应该在特定的 nokogiri 线上指定平台吗? I am relatively new to the rails repository in question, what can I look for to help my understanding as to why dependabot is recommending this particular version bump?我对相关的 rails 存储库比较陌生,我可以寻找什么来帮助我理解为什么 dependabot 推荐这个特定版本的 bump? I don't see anything in the https://github.com/sparklemotion/nokogiri/releases which looks relevant so I suspect the repository configuration is to blame.我在https://github.com/sparklemotion/nokogiri/releases中没有看到任何看起来相关的内容,所以我怀疑应该归咎于存储库配置。

Before I posted I looked at在我发布之前我看了看

Unfortunately, I did not draw any conclusions from reading these similar issues.不幸的是,我没有从阅读这些类似的问题中得出任何结论。 Any insight would be appreciated.任何见解将不胜感激。

nokogiri is published in multiple versions with prebuilt native extension for corresponding platforms, this allows installation on machines (or containers etc) where compilation is not desirable or not possible. nokogiri 以多个版本发布,带有针对相应平台的预构建本机扩展,这允许在不需要或不可能编译的机器(或容器等)上安装。

You can add used platforms to your lockfile via您可以通过以下方式将使用过的平台添加到您的锁定文件中

# usually production is x86 linux:
bundle lock --add-platform x86_64-linux

# for M1/M2 macs:
bundle lock --add-platform arm64-darwin

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM