Skip to content

filepath.EvalSymlinks returns invalid result on Windows #1830

@alexbrainman

Description

@alexbrainman
What steps will reproduce the problem?

build and run

package main

import (
    "fmt"
    "path/filepath"
    "log"
)

func main() {
    path := filepath.Clean(`c:\`)
    p, e := filepath.EvalSymlinks(path)
    if e != nil {
        log.Fatal(e)
    }
    fmt.Printf("%s\n", p)
}

What is the expected output?
c:\

What do you see instead?
c:

Please use labels and text to provide additional information.

hg id returns:
95d2ce135523+ (release-branch.r57) release/release.r57.1

GOOS=windows
GOARCH=386

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions