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
Temporarily disable dynver git tag check #5
Temporarily disable dynver git tag check #5
Conversation
build.sbt
Outdated
@@ -463,6 +463,8 @@ def internalProject(projectId: String, additionalSettings: sbt.Def.SettingsDefin | |||
) | |||
.settings(additionalSettings: _*) | |||
|
|||
// Temporarily disabled until we get tags setup in Pekko | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll merge this - but oddly I added a v0.0.0 tag but this still fails
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the tag, so yeah this happened because I forked the repo into my own account (mdedetrich
) and when I cloned it onto the machine it didn't fetch upstream tags. I just fetched upstream tags (with git fetch upstream
) and its working now.
I can either close this PR or maybe update the warning specifying what exactly to do locally? Alternately I can also just remove the exception but still keep the error warnings, its not great user experience for sbt to crash just because a user failed to do git fetch upstream
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I have made some adjustments so that instead of terminating SBT it just outputs an error log, i.e.
<@incubator-pekko-connectors>-<⎇ disable-dynver-git-tag-check>-<±>-> sbt
[info] welcome to sbt 1.6.2 (Homebrew Java 19.0.1)
[info] loading global plugins from /Users/mdedetrich/.sbt/1.0/plugins
[info] loading settings for project incubator-pekko-connectors-build from plugins.sbt ...
[info] loading project definition from /Users/mdedetrich/github/incubator-pekko-connectors/project
[info] loading settings for project pekkoConnectors from build.sbt ...
[info] resolving key references (65251 settings) ...
[info]
[info] ** Welcome to the sbt build definition for Pekko Connectors! **
[info]
[info] Useful sbt tasks:
[info]
[info] docs/previewSite - builds Paradox and Scaladoc documentation,
[info] starts a webserver and opens a new browser window
[info]
[info] test - runs all the tests for all of the connectors.
[info] Make sure to run `docker-compose up` first.
[info]
[info] mqtt/testOnly *.MqttSourceSpec - runs a single test
[info]
[info] mimaReportBinaryIssues - checks whether this current API
[info] is binary compatible with the released version
[info]
[error] Failed to derive version from git tags. Maybe run `git fetch --unshallow` or `git fetch upstream` on a fresh clone? Derived version: 0.0.0+2676-4ef3f6e3+20221109-1416-SNAPSHOT
[info] sbt server started at local:///Users/mdedetrich/.sbt/1.0/server/e2bc910af141664d9ebd/sock
[info] started sbt server
sbt:pekkoConnectors>
@pjfanning Let me know if this is more desirable, I just pushed the changes and I also requested a re-review.
4ef3f6e
to
6a73a49
Compare
I'm happy with whatever works - there appear to be scala format issues now (latest run) - feel free to merge anything that improves the build |
Woops, just triggered accidental re-review, ignore. |
6a73a49
to
04d9480
Compare
Just fixed it, repushing. |
04d9480
to
2b3971c
Compare
This check is causing sbt to load with the following error
Since there aren't any tags in the new incubator-pekko repo. The PR disables the check so that sbt can actually start