Open samrayner opened 10 months ago
In general, ignore
just means "don't create PRs for this dependency", but we normally can't ensure the dependency won't be parsed.
This is because:
We usually delegate to package managers, for example, in this case swiftPM does all the heavy lifting, and package managers normally still need to figure out all dependencies, even if they are not being actively updated.
Some package managers, in presence of a lockfile, skip reparsing/redownloading dependencies not being actively updated, by assuming the lockfile information for those dependencies needs to stay the same. However, that's probably not the case for Swift, particularly not when the lockfile was generated under a different OS.
To sum up, I don't see an easy way of addressing this.
Thanks @deivid-rodriguez ! Understood. It's sounding promising that Realm will fix this.
Is there an existing issue for this?
Package ecosystem
swift
Package manager version
SPM
Language version
Swift 5.9
Manifest location and content before the Dependabot update
/Packages/Dependencies/Package.swift
dependabot.yml content
Updated dependency
realm-swift
What you expected to see, versus what you actually saw
We are facing an issue with realm-swift's Package.swift where it references a file that only exists on macos and not on the system Dependabot runs on (presumably Linux?).
I have opened an issue with Realm: https://github.com/realm/realm-swift/issues/8458
I had hoped in the meantime we could
ignore
realm-swift to skip parsing of its Package.swift but it seems that it is parsed regardless. Presumablyignore
only applies to whether Dependabot creates a PR for detected updates or not?Would it be possible for
ignore
to skip the parsing? It would then make it possible to use it to avoid the whole scan failing if there is an issue with a single package.I appreciate this is an edge case and might not be feasible. Hopefully Realm will address the issue soon but I thought it would be worth bringing it to your attention anyway.
Thanks!
Native package manager behavior
No response
Images of the diff or a link to the PR, issue, or logs
Parsing of https://github.com/realm/realm-swift/blob/master/Package.swift fails:
Smallest manifest that reproduces the issue
See above :)