Skip to content

Fix "cat: can't open '.tmp/ldflags': No such file or directory" errors - #476

Merged
AkihiroSuda merged 1 commit into
moby:masterfrom
yui-knk:fix_warning
Jun 30, 2018
Merged

Fix "cat: can't open '.tmp/ldflags': No such file or directory" errors#476
AkihiroSuda merged 1 commit into
moby:masterfrom
yui-knk:fix_warning

Conversation

@yui-knk

@yui-knk yui-knk commented Jun 30, 2018

Copy link
Copy Markdown
Contributor

The error appears in

RUN go build -ldflags "$(cat .tmp/ldflags)" -o /buildctl.exe ./cmd/buildctl

and

RUN go build -ldflags "$(cat .tmp/ldflags)" -o /buildkitd.exe ./cmd/buildkitd

We ignore ".tmp" by ".dockerignore" file, so COPY . .
does not copy ".tmp".
This commit changes the image for "cross-windows" and removes
not needed instructions which are done by "buildkit-base".

This is follow up of #398

Signed-off-by: Yuichiro Kaneko spiketeika@gmail.com

The error appears in

```
RUN go build -ldflags "$(cat .tmp/ldflags)" -o /buildctl.exe ./cmd/buildctl
```

and

```
RUN go build -ldflags "$(cat .tmp/ldflags)" -o /buildkitd.exe ./cmd/buildkitd
```

We ignore ".tmp" by ".dockerignore" file, so `COPY . .`
does not copy ".tmp".
This commit changes the image for "cross-windows" and removes
not needed instructions which are done by "buildkit-base".

This is follow up of moby#398

Signed-off-by: Yuichiro Kaneko <spiketeika@gmail.com>
@AkihiroSuda
AkihiroSuda merged commit b0c2236 into moby:master Jun 30, 2018
@yui-knk
yui-knk deleted the fix_warning branch June 30, 2018 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants