Repository navigation
chore: Include a README in the NuGet packages - #485
Conversation
adamreeve
left a comment
There was a problem hiding this comment.
Thanks for addressing this @ump45nose
The package README caused the Bash verification jobs on Linux, macOS, and Windows to request a nonexistent README.md NuGet package. Iterate only source directories and preserve package names containing spaces. Validated with bash -n, whitespace checks, and eight isolated enumeration assertions covering baseline packages, README files, spaces, and no package directories. Full .NET and RC validation was not run locally. AI-assisted change.
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
3 open issues
What changed in this PR
Adds a NuGet-specific README and configures packing so all packable projects include it, eliminating dotnet nuget push “missing readme” warnings.
Changes:
- Add
src/README.mdtailored for nuget.org (packages list, usage snippet, links). - Wire up
PackageReadmeFileand pack the README via sharedDirectory.Build.props. - Adjust RC verification script to iterate
srcdirectories more directly when fetching NuGet artifacts.
| File | Description |
|---|---|
| src/README.md | Adds a NuGet-facing README with package overview, usage example, and links. |
| dev/release/verify_rc.sh | Updates artifact-fetch loop to iterate ../src/*/ directories. |
| Directory.Build.props | Sets PackageReadmeFile and packs src/README.md into all packable NuGet packages. |
Review effort: Lite
|
Thanks @ump45nose, we really appreciate the contribution! I think the issues found by Copilot look real; could you address them so we can commit this? |
PackagePath="\" is a Windows separator and does not match the license entry. Pack the icon and README with PackagePath="" as well. Signed-off-by: Vincent <52391318+ump45nose@users.noreply.github.com> Co-authored-by: ump45nose <ump45nose@users.noreply.github.com>
The example copies the record batch from ReadNextRecordBatchAsync() into a non-nullable local, which is a warning in consumer projects that enable nullable reference types. Use a nullable local and note why.
Iterating over src/*/ still assumed that every directory under src/ has a published NuGet package. Glob the project files instead, so a directory without a package cannot make the release verification fail.
|
@CurtHagenlocher All three Copilot points are addressed on the branch:
Verification I could run here: (AI-assisted.) |
|
Thanks @ump45nose ! |


What's Changed
dotnet nuget pushwarns that our packages have no readme. This adds a short package readme (src/README.md) and wires it up in the shared NuGet properties inDirectory.Build.props(PackageReadmeFileplus a packedContentitem next to the license and icon), so every packable project undersrc/gets it.The root
README.mdis aimed at people building the repo (build steps, relative links to source folders), so I wrote a separate, smaller one for nuget.org: what Apache Arrow is, the list of packages, a short IPC reading example and links to the docs and the repository. All links are absolute so they work on nuget.org. It carries the usual ASF license header like the other Markdown files.Checked with
dotnet pack -c Releasefor each project insrc/: all seven.nupkgfiles now containREADME.mdat the package root and their nuspec has<readme>README.md</readme>, with no new pack warnings.This PR was prepared with AI assistance and reviewed by me.
Closes #45.
Review follow-ups
PackagePath=""(d9b24ae), so both land at the package root.dev/release/verify_rc.shderives the package names fromsrc/*/*.csproj(4a6613a) instead of iterating everysrc/*/directory, sosrc/README.mdand any directory without a project cannot break release verification. No project setsPackageId, so the file name is the package id.RecordBatch? batch(3c9f12c), so pasting it into a nullable-enabled project does not warn.Verification for those two commits:
bash -n dev/release/verify_rc.shplus a dry run of the loop over a fixture tree (emitsnupkg/snupkgnames per project, skips a README file and an empty directory). This environment has no .NET SDK, so thedotnet packcheck above was not re-run after the Markdown and shell changes.