Skip to content

CLI reports non-native default config path on Windows #268

@mynk8

Description

@mynk8

Describe the bug

The CLI constructed the ConfigPath variable with mixed seperators and hence, the reported default config path in --help was wrong.

      --config string                 Path to Microcks config (default "C:\\Users\\HomePC/.config/microcks/config")

This seems to be a cosmetic issue only, the actual paths used by the runtime logic is different.

Expected behavior

The expected path should be C:\\Users\\HomePC\\.config\\microcks\\config on Windows

Actual behavior

Reports C:\Users\some_name/.config/microcks/config

How to Reproduce?

Run microcks --help on Windows

Microcks version or git rev

fde7e8f

Install method (docker-compose, helm chart, operator, docker-desktop extension,...)

source

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