Skip to content

Commit 59d8cc7

Browse files
authored
Merge pull request #19836 from dvdksn/fix-buildkit-windows-
fix: copy codeblocks for powershell
2 parents 34bc2ff + 9b1aa59 commit 59d8cc7

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

content/build/buildkit/_index.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,15 +180,10 @@ We appreciate any feedback you submit by [opening an issue here](https://github.
180180
$Env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + `
181181
[System.Environment]::GetEnvironmentVariable("Path","User")
182182
```
183-
6. Start `buildkitd.exe`.
183+
6. Start the BuildKit daemon.
184184

185185
```console
186186
> buildkitd.exe
187-
time="2024-02-26T10:42:16+03:00" level=warning msg="using null network as the default"
188-
time="2024-02-26T10:42:16+03:00" level=info msg="found worker \"zcy8j5dyjn3gztjv6gv9kn037\", labels=map[org.mobyproject.buildkit.worker.containerd.namespace:buildkit org.mobyproject.buildkit.worker.containerd.uuid:c30661c1-5115-45de-9277-a6386185a283 org.mobyproject.buildkit.worker.executor:containerd org.mobyproject.buildkit.worker.hostname:[deducted] org.mobyproject.buildkit.worker.network: org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:windows], platforms=[windows/amd64]"
189-
time="2024-02-26T10:42:16+03:00" level=info msg="found 1 workers, default=\"zcy8j5dyjn3gztjv6gv9kn037\""
190-
time="2024-02-26T10:42:16+03:00" level=warning msg="currently, only the default worker can be used."
191-
time="2024-02-26T10:42:16+03:00" level=info msg="running server on //./pipe/buildkitd"
192187
```
193188

194189
7. In another terminal with administrator privileges, create a remote builder that uses the local BuildKit daemon.
@@ -206,6 +201,12 @@ We appreciate any feedback you submit by [opening an issue here](https://github.
206201

207202
```console
208203
> docker buildx inspect
204+
```
205+
206+
The output should indicate that the builder platform is Windows,
207+
and that the endpoint of the builder is a named pipe.
208+
209+
```text
209210
Name: buildkit-exp
210211
Driver: remote
211212
Last Activity: 2024-04-15 17:51:58 +0000 UTC

layouts/_default/_markup/render-codeblock.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{{ end }}
55
<div class="group relative">
66
<button x-data="{ code: '{{encoding.Base64Encode .Inner}}', copying: false }"
7-
class="absolute right-3 top-3 z-20 text-gray-light-300 dark:text-gray-dark-600" title="Copy" @click="window.navigator.clipboard.writeText(atob(code).replaceAll(/^\$\s*/gm, ''));
7+
class="absolute right-3 top-3 z-20 text-gray-light-300 dark:text-gray-dark-600" title="copy" @click="window.navigator.clipboard.writetext(atob(code).replaceall(/^[\$>]\s+/gm, ''));
88
copying = true;
99
setTimeout(() => copying = false, 2000);">
1010
<span :class="{ 'group-hover:block' : !copying }" class="icon-svg hidden">{{ partialCached "icon" "content_copy" "content_copy" }}</span>

0 commit comments

Comments
 (0)