Cloning SWI-Prolog from GitHub. Package Zlib not cloning. Is it just me?

Normally I just install a stable release version of SWI-Prolog with no problems. Today Jan made a patch to package zlib that I need.

While I can use GitHub for cloning and have used it from time to time to create pull request (usually with a GUI interface) when a GitHub technical problem arise I seem to back in the stone age (don’t many of us know the feeling)

In trying to clone SWI-Prolog to my local system I first used a GUI which almost never fails, but not today.

Then upon further reading on the SWI-Prolog GitHub page read Forking, cloning and submitting patches

In running the commands

Eric@WINDOWS-6F874NS MINGW64 swipl-devel (master)
$ git submodule update --init
Submodule 'bench' (https://github.com/SWI-Prolog/bench.git) registered for path 'bench'

...

Submodule path 'packages/xpce': checked out '27eb56ebaa498e03ceae098c3e18f1bc75c32006'
Submodule path 'packages/yaml': checked out 'c514ee45dd3b30a19cdc7b438fc22d70df69ab4f'
error: Server does not allow request for unadvertised object 0955fb5697693d3325703f2e8a582410c77aa5a7
Fetched in submodule path 'packages/zlib', but it did not contain 0955fb5697693d3325703f2e8a582410c77aa5a7. Direct fetching of that commit failed.

In my local directory SWI-Prolog\swipl-devel\packages\zlib is a file .git which contains

gitdir: ../../.git/modules/packages/zlib

So was it something I did wrong? Do others have the same problem?

I forgot to push the submodule :frowning: Please run the git submodule update --init again.

1 Like

Jan,

Worked great as expected. I have to say that you are the most helpful and responsive person I have ever had the pleasure of working with for free software and GitHub repositories. :+1::grinning:

Eric@WINDOWS-6F874NS MINGW64 swipl-devel (master)
$ git submodule update --init
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 1 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
From https://github.com/SWI-Prolog/packages-zlib
   a5d4ffa..0955fb5  master     -> origin/master
Submodule path 'packages/zlib': checked out '0955fb5697693d3325703f2e8a582410c77aa5a7'
2 Likes