Skip to content

chore: Include a README in the NuGet packages - #485

Merged
CurtHagenlocher merged 6 commits into
apache:mainfrom
ump45nose:chore/45-nuget-readme
Nov 18, 2026
Merged

CurtHagenlocher merged 6 commits into
apache:mainfrom
ump45nose:chore/45-nuget-readme

Conversation

@ump45nose

@ump45nose ump45nose commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What's Changed

dotnet nuget push warns that our packages have no readme. This adds a short package readme (src/README.md) and wires it up in the shared NuGet properties in Directory.Build.props (PackageReadmeFile plus a packed Content item next to the license and icon), so every packable project under src/ gets it.

The root README.md is 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 Release for each project in src/: all seven .nupkg files now contain README.md at 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

  • The icon and the README both pack with PackagePath="" (d9b24ae), so both land at the package root.
  • dev/release/verify_rc.sh derives the package names from src/*/*.csproj (4a6613a) instead of iterating every src/*/ directory, so src/README.md and any directory without a project cannot break release verification. No project sets PackageId, so the file name is the package id.
  • The README example uses 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.sh plus a dry run of the loop over a fixture tree (emits nupkg/snupkg names per project, skips a README file and an empty directory). This environment has no .NET SDK, so the dotnet pack check above was not re-run after the Markdown and shell changes.

@adamreeve adamreeve left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing this @ump45nose

Comment thread src/README.md Resolved
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.
@CurtHagenlocher
CurtHagenlocher requested a lite review from Copilot October 23, 2026 19:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.md tailored for nuget.org (packages list, usage snippet, links).
  • Wire up PackageReadmeFile and pack the README via shared Directory.Build.props.
  • Adjust RC verification script to iterate src directories 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

Comment thread Directory.Build.props Resolved
Comment thread dev/release/verify_rc.sh Resolved
Comment thread src/README.md Resolved
@CurtHagenlocher

Copy link
Copy Markdown
Contributor

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?

ump45nose and others added 3 commits November 8, 2026 00:49
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.
@ump45nose

Copy link
Copy Markdown
Contributor Author

@CurtHagenlocher All three Copilot points are addressed on the branch:

  1. Directory.Build.props PackagePath — the icon and the README both pack with PackagePath="" now, so both land at the package root (d9b24ae).
  2. dev/release/verify_rc.sh loop — it no longer assumes a 1:1 mapping of src/*/ directories to packages. It derives the names from src/*/*.csproj (4a6613a), so src/README.md and any directory without a project are skipped. No project sets PackageId, so the file name is still the package id.
  3. README example — the local is RecordBatch? batch (3c9f12c), with a comment that ReadNextRecordBatchAsync() returns null at the end of the file, so pasting the sample into a nullable-enabled project does not warn.

Verification I could run here: bash -n dev/release/verify_rc.sh, plus a dry run of the new loop over a fixture tree, which emits nupkg and snupkg names for each project and skips a README file and an empty directory. There is no .NET SDK in this environment, so I could not re-run dotnet pack; the last pack check (all seven packages contain README.md and <readme>README.md</readme>, no new warnings) predates these two commits, which only touch a Markdown snippet and the shell loop.

(AI-assisted.)

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active issues were identified in the reviewed README packaging and release-verification changes.

No open issues 🎉

3 resolved since last review

Review effort: Lite

@CurtHagenlocher
CurtHagenlocher merged commit bbca2f6 into apache:main Nov 18, 2026
14 checks passed
@CurtHagenlocher

Copy link
Copy Markdown
Contributor

Thanks @ump45nose !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NuGet packages miss README

4 participants