Closed saturnflyer closed 4 months ago
This issue seems to reflect the same problem with the platform changing https://github.com/dependabot/dependabot-core/issues/10034
Can you share a public PR with this problem? I'd like to have a look.
@deivid-rodriguez this is in a private repository. I'll see if I can recreate it in a public one
Had this come up in another private repo when updating the clearance
gem
I don't understand how it would get x86_64-darwin
@deivid-rodriguez I'm trying to recreate this over here https://github.com/saturnflyer/dependabot-bug/pull/1/files but dependabot isn't changing the platform. I'll see if adding additional dependencies makes a difference
we are having the same issue in our dependabot prs.
Examples:
The added system specification breaks building in for example our github actions
I can also report we have the same in some of our repositories, it removes the ruby
platform and adds the x86_64-darwin
for seemingly no apparent reason.
Weird thing is that with the exact same dependabot.yml
it works fine in other repo's.
version: 2
updates:
- package-ecosystem: bundler
directory: '/'
schedule:
interval: daily
open-pull-requests-limit: 10
groups:
security-updates:
applies-to: security-updates
patterns:
- '*'
update-types:
- 'minor'
- 'patch'
version-updates:
applies-to: version-updates
patterns:
- '*'
update-types:
- 'minor'
- 'patch'
Thanks for sharing those PRs, will look into this.
I identified this as a problem in Bundler. Will work on a solution upstream and propose an update of the Bundler version used by Dependabot once ready.
I have an upstream fix! Probably won't be included in the next release, but in the one after.
So some updates here, upstream PR is merged and I plan to release it by the end of next week.
Fixes are now released, so this issue should be gone (🤞) once Dependabot upgrades through #10246.
Let me know if you're still seeing issues after this update, thanks!
Hello @deivid-rodriguez! Has this update been released? Can't find it in latest tag.
@laasem Yeah it looks like it missed the release indeed.
I also still have the issue persisting in my repo's after the latest Dependabot runs so hopefully it will catch the next one!
mmmm I guess if you're using Dependabot as a standalone tool you need to wait for the next release, but if you're using Github.com's dependabot updates service, I'd say this has already been deployed. Maybe there are still some issues? Can you point to a public PR where this is still happening?
This resolved for me in most but not all prs.
It still persisted here: https://github.com/dodona-edu/dodona/pull/5706/commits/fc0dd9d9e2cc941c98da13ad98dc3e45808244a3
In that case, ffi
is actually a transitive dependency of image_processing
, so it's expected.
It's not clear whether bundler should "upgrade platforms" when running bundle update
. It currently does so, so from dependabot-core's point of view, this is expected.
The behavior could be changed upstream, but I'm not fully sure if we want to change it, because otherwise if a gem author releases a platforms specific variant of a gem that you do want to use, you' won't be able to pick up that upgrade if we change the behavior.
Is there an existing issue for this?
Package ecosystem
bundler
Package manager version
bundler 2.5.5
Language version
Ruby 3.3.1
Manifest location and content before the Dependabot update
/Gemfile
dependabot.yml content
version: 2 updates:
package-ecosystem: 'bundler' directory: '/' schedule: interval: 'daily' groups: production: dependency-type: 'production' development: dependency-type: 'development' patches: update-types:
package-ecosystem: 'npm' directory: '/' schedule: interval: 'daily'
package-ecosystem: 'docker' directory: '/' schedule: interval: 'weekly'
Updated dependency
from:
to:
What you expected to see, versus what you actually saw
There should be no change to this gem. But the platform was updated
Expected:
Actual:
Native package manager behavior
Images of the diff or a link to the PR, issue, or logs
Smallest manifest that reproduces the issue
No response