Skip to content

Support local and private dependencies - #84

Merged
Frotty merged 3 commits into
masterfrom
codex/install-nonpublic-dependencies
Oct 2, 2026
Merged

Frotty merged 3 commits into
masterfrom
codex/install-nonpublic-dependencies

Conversation

@Frotty

@Frotty Frotty commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Support local file: dependency URLs by copying the source directory into _build/dependencies on install, excluding .git and rejecting symlinks.
  • A local grill install file:... refreshes only local dependencies and skips remote dependency and core JASS refreshes, allowing offline use.
  • Reuse the installed Git credential helpers for JGit HTTPS requests, enabling configured helpers such as Git Credential Manager to authenticate private repositories.
  • Document local and private dependency behavior and update the dependency schema description.

Acceptance criteria

  • Local file dependencies install offline and refresh from the source directory on each install.
  • HTTPS dependency operations can request credentials through the user's Git credential helper without Grill storing credentials.
  • Dependency handling and docs compile cleanly.

Checks

  • ./gradlew test — passed; the two symlink regression cases were skipped because this Windows environment does not allow creating symbolic links.
  • git diff --check — passed.

Known limitations

  • SSH dependency URLs remain unsupported; credential-helper bridging covers HTTPS.
  • Local dependency source trees containing symbolic links are rejected.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-02T08:07:08.031189Z ee1b54f Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4089f642e6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/main/kotlin/file/SetupApp.kt
Comment thread src/main/kotlin/file/DependencyManager.kt Outdated
@Frotty

Frotty commented Oct 2, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: add8752a3c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/main/kotlin/file/DependencyManager.kt
@Frotty

Frotty commented Oct 2, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ee1b54f318

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

}
}

override fun reset(uri: URIish?) = Unit

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject failed credentials when resetting the provider

When a credential helper returns a stale or revoked credential, JGit invokes reset after the server rejects it before retrying authentication. This no-op leaves the helper unaware of the failure, so each subsequent fill can return the same invalid credential and private dependency operations cannot recover or trigger a fresh sign-in. The inspected git credential -h output explicitly lists reject alongside fill and approve; retain the filled credential and pass it to git credential reject here.

Useful? React with 👍 / 👎.

@Frotty
Frotty merged commit e55cf33 into master Oct 2, 2026
1 check passed
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