Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strange warning about project not being in a git repository? #22

Closed
peterfigure opened this issue Dec 12, 2021 · 5 comments
Closed

strange warning about project not being in a git repository? #22

peterfigure opened this issue Dec 12, 2021 · 5 comments

Comments

@peterfigure
Copy link

doesn't appear to impact anything but does print a warning in this multi-module project

> Task :config-versioning:generatePrecompiledScriptPluginAccessors
semver plugin can't work if the project is not a git repository <============== HERE

> Task :config-versioning:compileKotlin
w: Language version 1.4 is deprecated and its support will be removed in a future version of Kotlin

BUILD SUCCESSFUL in 9s
81 actionable tasks: 40 executed, 41 up-to-date

gradle-plugins on  main [!] via ☕ v11.0.13 via 🅺 on ☁️  (us-west-2) on ☁️ xxx(us-east1) took 9s 
❯ git status
On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   .github/workflows/pushpr.yaml
	modified:   config-versioning/build.gradle.kts
	modified:   config-versioning/src/main/kotlin/com.xxx.gradle.config-versioning.gradle.kts

no changes added to commit (use "git add" and/or "git commit -a")
@JavierSegoviaCordoba
Copy link
Owner

That was the fix for this one #18

Is it appearing even if the project is a git repository?

@peterfigure
Copy link
Author

it appears so :( see git status output

@JavierSegoviaCordoba
Copy link
Owner

I can't reproduce it in my repositories, can you share a repro?

@peterfigure
Copy link
Author

private repo unfortunately, I'll try to put together another repo and see if it replicates the problem

@JavierSegoviaCordoba
Copy link
Owner

Fixed, if a tag is pushed two times, the task will fail (which is normal). Now instead of checking if there is a crash, plugin checks if .gitexists.

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

No branches or pull requests

2 participants