Skip to content

[bug] We lost retrocompatibility with 2.* Singularity version. #85

@al3x609

Description

@al3x609

a few months ago, we made a few changes for support Singularity 3.* instance group commands,

i.e

subgroup = 'instance.stop'
if get_singularity_version().find("version 3"):
subgroup = ["instance", "stop"]

but this break compatibility with 2.* branch, because always go inside the IF statement, it was my mistake, :( .

this can fix that.

if ( get_singularity_version().find("version 3") != -1 ):

now, testing singularity 3.* commands, they now support two ways to return singularity version

I think that they we listen to us :)

  • singularity version
    3.1.0-rc4.dirty
  • singularity --version
    singularity version 3.1.0-rc4.dirty

What you think about that?

Can this return value be used to prevent including unnecessary code?

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