feat: add boss.json for Boss package manager support - #155
Open
vBaggio wants to merge 1 commit into
Open
Conversation
Boss (https://github.com/HashLoad/boss) requires a boss.json manifest at the repository root to resolve a package as a dependency. Without it, installation fails with "entry not found". Also removes the orphaned .gitmodules entry for "DUnitXML" (../DUnit-XML.git), which has no corresponding gitlink in the tree. Boss's embedded git implementation (go-git) fails submodule initialization on clone when a declared submodule path is missing from the tree, aborting the install with the same "entry not found" error before the manifest is even read.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds support for installing this library as a dependency via Boss, the dependency manager for Delphi and Lazarus.
1. Add
boss.jsonBoss requires a
boss.jsonmanifest at the repository root to resolve a package as a dependency (source path, version, etc.). Without it,boss installfails outright with anentry not founderror before it can even read the project structure. This adds a minimal manifest, following the same shape used by other Boss-registered Delphi libraries, pointingmainsrcat./Source.2. Remove orphaned
.gitmodulesWhile debugging the
entry not founderror above, I found a second, independent cause:.gitmodulesdeclares a submoduleDUnitXML(../DUnit-XML.git) that has no corresponding entry in the repository tree — it was never actually committed as a submodule. Boss's embedded Git implementation (go-git) tries to initialize every submodule listed in.gitmodulesright after cloning, and fails with the sameentry not founderror when the declared path doesn't exist in the tree. This happens regardless of theboss.jsonfix above, so both changes are needed together forboss installto succeed. Since the submodule was never wired up to anything (noDUnitXMLdirectory exists in the repo), removing the stale entry is safe.Test plan
boss install github.com/<fork>/Delphi-Mocksagainst this branch (published as a tag on a fork) and confirmed it clones, checks out, and installs successfully — no moreentry not found.