Skip to content

Wrong git revison for cardano-db-sync executables #1961

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

Open
ArturWieczorek opened this issue Mar 24, 2025 · 1 comment · May be fixed by #1962
Open

Wrong git revison for cardano-db-sync executables #1961

ArturWieczorek opened this issue Mar 24, 2025 · 1 comment · May be fixed by #1962
Assignees
Labels
bug Something isn't working

Comments

@ArturWieczorek
Copy link
Contributor

Built for 13.6.0.5 https://github.com/IntersectMBO/cardano-db-sync/pull/1954/commits

nix:
./db-sync-node/bin/cardano-db-sync version
cardano-db-sync 13.6.0.5 - linux-x86_64 - ghc-8.10
git revision 0000000000000000000000000000000000000000

cabal:
./dist-newstyle/build/x86_64-linux/ghc-9.6.3/cardano-db-sync-13.6.0.5/build/cardano-db-sync/cardano-db-sync --version
cardano-db-sync 13.6.0.5 - linux-x86_64 - ghc-9.6
git revision cb61094

cdbs
Cloning into 'cardano-db-sync'...
remote: Enumerating objects: 36023, done.
remote: Counting objects: 100% (4383/4383), done.
remote: Compressing objects: 100% (998/998), done.
remote: Total 36023 (delta 3872), reused 3420 (delta 3380), pack-reused 31640 (from 2)
Receiving objects: 100% (36023/36023), 11.37 MiB | 1.61 MiB/s, done.
Resolving deltas: 100% (21609/21609), done.


cd cardano-db-sync/

git co 13.6.0.5

git last
commit cb61094c82254464fc9de777225e04d154d9c782 (HEAD, tag: 13.6.0.5, origin/release/13.6.0.5)
Merge: ce2fbc36 8692f30a
Author: Kostas Dermentzis <[email protected]>
Date:   Tue Mar 18 18:55:58 2025 +0200

    Merge pull request #1954 from IntersectMBO/kderme/prepare-13.6.0.5
    
    Prepare 13.6.0.5

bdbs
Using saved setting for 'allow-import-from-derivation = true' from ~/.local/share/nix/trusted-settings.json.
Using saved setting for 'experimental-features = nix-command flakes fetch-closure' from ~/.local/share/nix/trusted-settings.json.
Using saved setting for 'extra-substituters = https://cache.iog.io' from ~/.local/share/nix/trusted-settings.json.
Using saved setting for 'extra-trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=' from ~/.local/share/nix/trusted-settings.json.


./db-sync-node/bin/cardano-db-sync version
cardano-db-sync 13.6.0.5 - linux-x86_64 - ghc-8.10
git revision 0000000000000000000000000000000000000000
@ArturWieczorek ArturWieczorek added the bug Something isn't working label Mar 24, 2025
@sgillespie
Copy link
Contributor

sgillespie commented Mar 24, 2025

Interestingly, if I build the release distribution, it works correctly:

> nix build .\#cardano-db-sync-linux    
> mkdir -p out
> cp result/cardano-db-sync-13.6.0.5-linux.tar.gz out 
> cd out 
> tar xzf cardano-db-sync-13.6.0.5-linux.tar.gz 
> ./bin/cardano-db-sync version
cardano-db-sync 13.6.0.5 - linux-x86_64 - ghc-8.10
git revision 3a9650f2fc16f4fea9ebbc1cc0767200659e3e2d

EDIT: It looks like set-git-rev generally works, but it's not set up on a few targets

@sgillespie sgillespie linked a pull request Mar 24, 2025 that will close this issue
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants