Skip to content

Wrong version_git.jl line 16 on julia 1.6.6 and julia 1.7.2 #45100

Open
@paolo-oliveri

Description

@paolo-oliveri

Hello,
I have found an issue in packages distributed using the releases download or the Source download of the Julia site.
There is a git information julia script called version_git.jl in the base directory, that I think it is created by version_git.sh
There is an option of "NO_GIT" in version_git.sh that echoes in version_git.jl the following line:

const GIT_VERSION_INFO = GitVersionInfo("" ,"" ,"" ,0 ,"" ,true ,0 ,0.)

Unfortunately, the Struct VersionInfo has 10 entries and during make the compilation will fail with MethodError.
To resolve this issue one can edit version_git.sh at line 27 by adding two more empty string entries at the right of the last 0 in the GitVersionInfo call.

This issue is not present in the master branch as it is already resolved, but if one downloads the stable or LTS branch and tries to compile he will ecounter it for sure.
Sincerely,
Paolo Oliveri

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions