When building my snap, I get the following message:
:: Building flutter tool…
:: Resolving dependencies…
:: Downloading packages…
:: Got dependencies.
:: Failed to find the latest git commit date: VersionCheckError: Command exited with code 128: git -c log.showSignature=false log 8cd19e509d6bece8ccd74aef027c4ca947363095 -n 1 --pretty=format:%ad --date=iso
:: Standard out:
:: Standard error: fatal: bad object 8cd19e509d6bece8ccd74aef027c4ca947363095
::
:: Returning 1969-12-31 18:00:00.000 instead.
The build continues, but just wondering if anyone knows why this is happening? I am using git on the project, and the git files are there.
Many thanks,
MIke
mr_cal
June 20, 2025, 1:14pm
2
Can you provide the full log output?
It looks like Facing issue when running "Flutter doctor" command in cmd · Issue #117822 · flutter/flutter · GitHub .
I would enter a shell with --debug
and try to make it succeed manually, then add an override-build
script, probably along the lines of:
override-build: |
git config safe.directory ...
craftctl default
Hi mr_cal,
Thank you for taking the time to try and help. I have linked the log file below from the package build if you want to take a look. I am new to creating snaps, so bear with me. I will take a look at that link and see if your suggestion will fix it. It always seems to fall back to permissions on everything.
Link to the snap build log
https://drive.google.com/file/d/189EVc_pSWl3MG-QB7omUgQAfg2R1bAJd/view?usp=sharing
Thanks,
MIke
mr_cal
June 23, 2025, 12:32pm
4
Hopefully the advice and link fixes it, as I don’t see the error in that build log.