Skip to content

Why is UpdatePackage not idempotent / why does it compile a package even though it is already up-to-date? #147

@fingolfin

Description

@fingolfin

In a GAP sessions with the latest IO 4.9.3 loaded:

gap> UpdatePackage("io");
#I  Retrieving PackageInfo.g from https://gap-packages.github.io/io/PackageInfo.g ...
#I  The newest version of package "io" is already installed
#I  Running compilation script on /Users/mhorn/Library/Preferences/GAP/pkg/io-4.9.3/ ...
...
#I    + gmake
#I    ./config.status gen/pkgconfig.h
#I    config.status: creating gen/pkgconfig.h
#I    echo > gen/pkgconfig.h.stamp
#I       GAC     src/io.c => gen/src/io.o
#I       GAC     gen/src/io.o => bin/aarch64-apple-darwin24-default64-kv10/io.so
true
gap>

Why does it do that?

Note that io 4.9.3 in my case is not loaded from the directory /Users/mhorn/Library/Preferences/GAP/pkg/io-4.9.3/ where PackageManager builds it, but that shouldn't matter, right? I mainly mention it in case it might be relevant for analyzing this behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions