-
Notifications
You must be signed in to change notification settings - Fork 205
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
Release fails with Error: fatal: ' 9007199254740991': not an integer
#2425
Release fails with Error: fatal: ' 9007199254740991': not an integer
#2425
Comments
Oddly, this issue resolved itself after removing my |
Actually, it seems the issue resolved itself only temporarily. Even with the changes I mentioned above still applied, I am getting the same error again with a new PR. So I still need help. |
I also started getting this exact error today.
|
Git v2.43.2 seems to be the issue, v2.42.0 still works: > git log -n 9007199254740991
fatal: '9007199254740991': not an integer |
|
@jazmon Do you have an example of the patch? Unsure what and where you'd put a fix. Thanks |
@ecstaticrainbow here index a28a5eb2565d237bd0eff65e6222511287424b5a..464a642e71538ed8e79291b41bae821512eaa950 100644
--- a/dist/git.js
+++ b/dist/git.js
@@ -240,9 +240,11 @@ class Git {
const startSha = (await this.shaExists(start))
? await exec_promise_1.default("git", ["rev-parse", start])
: "";
+ const maxNumber = 2147483647;
const log = await gitlog_1.gitlogPromise({
repo: process.cwd(),
- number: Number.MAX_SAFE_INTEGER,
+ number: maxNumber,
fields: ["hash", "authorName", "authorEmail", "rawBody"],
// If start === firstCommit then we want to include that commit in the changelog
// Otherwise it was that last release and should not be included in the release. |
@jazmon could you still submit a PR? I can do it if you don't have time, just let me know. Maybe we can get @hipstersmoothie to merge the fix for this blocking bug? |
I would but I have an open PR #2414 that fixes another bug here and it's been open for months without anyone looking at it, doesn't seem very productive to create any more PRs to fix things. Might need to fork this library instead |
PR opened : #2426 |
If anyone is running into this on Github Actions ubuntu runner, I have the worst temporary workaround ever:
don't judge me, it works. |
@tferullo It works with these specific git versions. This should be fixed in this repo. |
Here is a shell command that applies the fix from @jazmon
|
Thanks @Zweer for the PR 👍
This will fail once that version of git is not published in the |
Yup, very excited for that 😄 |
I think you command is actually installing the ubuntu repo version not the ppa. |
Also having the same issue for my repos using Auto, starting today. |
We're getting the fix out! |
Fixing git `2.43.0` max number issue #2425
11.0.5 fixes the issue for me. Thank you for the quick turnaround! |
version to solve the issue from intuit/auto#2425
🐛 Update auto package to it's latest version to solve the issue from intuit/auto#2425
|
Our canary builds are broken right now, see https://github.com/tldraw/tldraw/actions/runs/8018554530/job/21904677162#step:4:13 Looks like `[email protected]` solves this intuit/auto#2425 ### Change Type - [ ] `patch` — Bug fix - [ ] `minor` — New feature - [ ] `major` — Breaking change - [ ] `dependencies` — Changes to package dependencies[^1] - [ ] `documentation` — Changes to the documentation only[^2] - [ ] `tests` — Changes to any test code only[^2] - [x] `internal` — Any other changes that don't affect the published package[^2] - [ ] I don't know
If any contributors want to help maintain auto I'm open to the idea! (If anyone want to just that platform team we're hiring descript.com) |
Describe the bug
As of today, but not last Friday (2/16), our canary (PR) releases are failing on the
shipit
command, with the following error:More detailed output using
-vv
option:To Reproduce
Run
auto shipit
Expected behavior
Expected that the release finishes successfully, which was working as of last Friday (2/16).
Screenshots
Environment information:
Running
npx auto info
gives me an error saying environment variables are missing. I think they are only set in the build process, not locally.However, the build does show the following information:
Additional context
9007199254740991
is the value ofNumber.MAX_SAFE_INTEGER
, which I noticed is referenced in thegetGitLog
method of@auto-it/core/dist/git.js
. I am just not sure why, or where, Auto is converting it to a string.The text was updated successfully, but these errors were encountered: