Skip to content

cmd/go: go build executes unnecessary mkdir  #6583

@davecheney

Description

@davecheney
What steps will reproduce the problem?

% go build -x
WORK=/tmp/go-build249279931
mkdir -p $WORK/crypto/hmac/_obj/
mkdir -p $WORK/crypto/
cd /home/dfc/go/src/pkg/crypto/hmac
/home/dfc/go/pkg/tool/linux_arm/5g -o $WORK/crypto/hmac/_obj/_go_.5 -p crypto/hmac
-complete -D _/home/dfc/go/src/pkg/crypto/hmac -I $WORK ./hmac.go
/home/dfc/go/pkg/tool/linux_arm/pack grcP $WORK $WORK/crypto/hmac.a
$WORK/crypto/hmac/_obj/_go_.5

What is the expected output? What do you see instead?

mkdir -p $WORK/crypto/hmac/_obj/

will create $WORK/crypto/

so

mkdir -p $WORK/crypto/

is unnecessary.

Please use labels and text to provide additional information.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions