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

Temporarily disable dynver git tag check #5

Merged
merged 1 commit into from Nov 9, 2022

Conversation

mdedetrich
Copy link
Contributor

This check is causing sbt to load with the following error

[error] Failed to derive version from git tags. Maybe run `git fetch --unshallow`? Derived version: 0.0.0+2675-8c31b4d7-SNAPSHOT

Since there aren't any tags in the new incubator-pekko repo. The PR disables the check so that sbt can actually start

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
/**
Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@mdedetrich mdedetrich Nov 9, 2022

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).

Copy link
Contributor Author

@mdedetrich mdedetrich Nov 9, 2022

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.

@pjfanning
Copy link
Contributor

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

@mdedetrich
Copy link
Contributor Author

Woops, just triggered accidental re-review, ignore.

@mdedetrich
Copy link
Contributor Author

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

Just fixed it, repushing.

@mdedetrich mdedetrich merged commit 2d05377 into apache:main Nov 9, 2022
@mdedetrich mdedetrich deleted the disable-dynver-git-tag-check branch November 9, 2022 13:50
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.

None yet

2 participants