Skip to content

Examples: on the published Obvs 7.0.2 packages - #214

Open
christopherread wants to merge 1 commit into
v7from
v7-examples-packages
Open

christopherread wants to merge 1 commit into
v7from
v7-examples-packages

Conversation

@christopherread

Copy link
Copy Markdown
Owner

The examples said they'd move to the published packages once v7 was on NuGet. It's at 7.0.2 now, so they have.

The projects

  • Messages references Obvs 7.0.2, and Client and Service.ActiveMQ reference Obvs.ActiveMQ 7.0.2, in place of the project references into the repo. The comments that said this was coming are gone.
  • Examples/Directory.Packages.props already turns central package management off, so the versions are in the csproj files.

Docker

  • The Dockerfile builds from Examples/ alone, not the repo's root, since it doesn't need Obvs's source any more. It restores from the project files first, so editing the code doesn't download the packages again. The build context is 3.5 kB.
  • .dockerignore leaves out bin/ and obj/, so a local build's restore files don't reach the image.
  • docker-compose.yml builds from .. ActiveMQ now has a healthcheck and the service waits for it: started together, the service connected before the broker was listening, its receive subscriptions failed, and they never retried, so nothing it should have handled reached it.

Dependabot

The /Examples entry no longer copies the root's ignores. It only had them (#212) because the project references made its group update the root's Directory.Packages.props. The examples now pin their own versions, so the entry updates only theirs. Dependabot reads this file from master, so it applies from the next release.

Checks

  • dotnet build Examples/Obvs.Examples.sln: no warnings, resolving Obvs and Obvs.ActiveMQ 7.0.2 from NuGet.
  • docker compose up -d --build from Examples/, then dotnet run --project Client: a command came back as the event HELLO OBVS, and a request got You asked: is it working. Both apps logged the same trace ID for each.
  • dependabot.yml parses: the root NuGet entry has its ignores and the examples entry has none.

It's build config and samples, so there's no new test.

🤖 Generated with Claude Code

The client, the service and their messages now take Obvs and Obvs.ActiveMQ from NuGet instead of building them
from the repo, so the Dockerfile builds from Examples/ alone, and the service waits for the broker to accept
connections before it starts. Dependabot's examples entry no longer copies the root's ignores: it only carried
them because the project references made it update the root's Directory.Packages.props.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant