CDataWGo Swift package can't build: it depends on the removed Arrow/ directory
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- build-system
Research direction
The broken reference is in CDataWGo/Package.swift, where the .package(path: "../Arrow") dependency should point at the root manifest instead. Run swift build inside CDataWGo/ to reproduce the error, then fix the dependency declaration so the product name matches the identity of the root package. Done when swift build succeeds in CDataWGo/; the issue also suggests removing the harness if it is no longer maintained.
Written by the indexing model from the issue text.
Description
Describe the bug
swift build in CDataWGo/ fails, because CDataWGo/Package.swift still declares a local dependency on ../Arrow:
.package(path: "../Arrow") // 👈 Reference to a Local Package
That directory no longer exists. The package was consolidated into a single manifest at the repository root in #109 (d24935c, "Move ArrowTests to standard layout"), but the CDataWGo manifest was not updated at the time.
Error on main (f02f9d0), macOS 27.0, Swift 6.4.2:
$ cd CDataWGo && swift build
error: the package at '.../arrow-swift/Arrow' cannot be accessed
(.../arrow-swift/Arrow doesn't exist in file system)
Changing only the path to .. is not enough, because SwiftPM derives a path dependency's identity from its directory name. The existing product reference then fails:
error: 'cdatawgo': unknown package 'Arrow' in dependencies of target 'go-swift';
valid packages are: 'arrow-swift' (at '.../arrow-swift')
Expected behavior
swift build in CDataWGo/ should succeed, so the Go ↔ Swift C data interface harness can be built, or the harness should be removed if it is no longer maintained.
I verified that this manifest change builds successfully:
.package(name: "Arrow", path: "..")
It works both against the current root manifest (swift-tools-version: 5.10) and against the swift-tools-version: 6.1 root from #202.
Additional context
- Nothing in CI builds
CDataWGo/, which is why this went unnoticed:ci/scripts/{build,test}.shonly build the root package. The Swift side is also excluded from SwiftLint (.swiftlint.yml), and Dependabot only tracks the Go module there. - The harness builds the static
go-swiftlibrary fromCDataWGo/Sources/go-swift/CDataTest.swift, whichCDataWGo/main.golinks with cgo to exercise the C data interface againstarrow-goin both directions. - The same layout migration left stale
/Arrow/and/ArrowFlight/entries in.github/dependabot.yml; those are cleaned up separately in #208.
- Dominant language
- Swift
- Stars
- 33
- Forks
- 20
- Avg merge
- 10h 47m
- Merged PRs (30d)
- 5
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/arrow-swift
-
setup-swift doesn't work on Ubuntu 26.04Possibly taken @ump45nose claimed this 6 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
apache/arrow-swift#199 ·
Maintainers usually reply within 1 day
-
BaseBufferBuilder.isNull returns the inverse of the null statePossibly taken @maltzsama claimed this 101 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
apache/arrow-swift#180 ·
Maintainers usually reply within 1 day
-
ArrowReader.fromFile crashes on files smaller than the Arrow file markerPossibly taken @maltzsama claimed this 101 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/arrow-swift#176 ·
Maintainers usually reply within 1 day
-
Regenerate FlatBuffers Swift sources automatically on Dependabot updatesPossibly taken @sidpug-arcana claimed this 1 day ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 52/100
apache/arrow-swift#204 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
apache/arrow-swift#186 ·
Maintainers usually reply within 1 day
All issues in apache/arrow-swift
Similar issues
-
@-mention suggestions don't match a display name typed without its spaces (Element Web does)Possibly taken @dwong716 claimed this today. OpenT-Defect
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
element-hq/element-x-ios#6457 ·
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
manaflow-ai/cmux#32617 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
skiptools/skip-fuse-ui#166 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
runjuu/InputSourcePro#153 · 1 comment ·
-
Requirement is wrongOpen
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
remko/age-plugin-se#25 ·