Skip to content

Relax project-dir validation to not require .gradle/#13

Merged
joshfriend merged 1 commit intomainfrom
jfriend/relax-project-dir-validation
Apr 14, 2026
Merged

Relax project-dir validation to not require .gradle/#13
joshfriend merged 1 commit intomainfrom
jfriend/relax-project-dir-validation

Conversation

@joshfriend
Copy link
Copy Markdown
Collaborator

The .gradle/ directory only exists when Gradle writes configuration-cache or other project-level state into the project root. Builds invoked with -p (e.g. -p plugins, -p build-logic) place .gradle/ in the subdir instead, so requiring it at the project root causes save and save-delta to fail for those cache keys. ProjectDirSources already handles the missing .gradle/ case gracefully, so the validation just needs to check the directory itself exists.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

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: c75528ac5e

ℹ️ 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 gradlecache/gradlecache_test.go Outdated
@joshfriend joshfriend force-pushed the jfriend/relax-project-dir-validation branch from c75528a to 37982ee Compare April 14, 2026 20:41
@joshfriend joshfriend enabled auto-merge (squash) April 14, 2026 20:43
@joshfriend joshfriend merged commit 2e1442f into main Apr 14, 2026
10 checks passed
@joshfriend joshfriend deleted the jfriend/relax-project-dir-validation branch April 14, 2026 20:48
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