Skip to content

opam switch list doesn't display things on the same number of columns on Unix vs. Windows #7041

Description

@kit-ty-kate
N0REP0
### OPAMYES=1
### opam switch create global-1 --empty
### opam switch create .global-2 --empty
### opam switch create ./local-1 --empty
### opam switch create local-2/ --empty
### opam switch --switch=global-1
#   switch                                              compiler  description
    .global-2                                                     .global-2
    ${BASEDIR}/local-1            ${BASEDIR}/local-1
    ${BASEDIR}/local-2            ${BASEDIR}/local-2
->  global-1                                                      global-1
### opam switch --switch=.global-2
#   switch                                              compiler  description
->  .global-2                                                     .global-2
    ${BASEDIR}/local-1            ${BASEDIR}/local-1
    ${BASEDIR}/local-2            ${BASEDIR}/local-2
    global-1                                                      global-1
### opam switch --switch=./local-1
#   switch                                              compiler  description
    .global-2                                                     .global-2
->  ${BASEDIR}/local-1            ${BASEDIR}/local-1
    ${BASEDIR}/local-2            ${BASEDIR}/local-2
    global-1                                                      global-1
### opam switch --switch=local-2/
#   switch                                              compiler  description
    .global-2                                                     .global-2
    ${BASEDIR}/local-1            ${BASEDIR}/local-1
->  ${BASEDIR}/local-2            ${BASEDIR}/local-2
    global-1   

If i try to regenerate the result of this reftest on Windows the compiler column will get shifted to the left by 7 characters and overlap with the locations of the local switches

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions