Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
a07c935d
"src/vscode:/vscode.git/clone" did not exist on "360e6cb48d2cb175d8c515882a0e1a4e27d092b5"
Commit
a07c935d
authored
Nov 14, 2023
by
Michael Yang
Browse files
ignore non blobs
parent
1552cee5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
server/images.go
server/images.go
+3
-1
No files found.
server/images.go
View file @
a07c935d
...
@@ -782,8 +782,10 @@ func PruneLayers() error {
...
@@ -782,8 +782,10 @@ func PruneLayers() error {
if
runtime
.
GOOS
==
"windows"
{
if
runtime
.
GOOS
==
"windows"
{
name
=
strings
.
ReplaceAll
(
name
,
"-"
,
":"
)
name
=
strings
.
ReplaceAll
(
name
,
"-"
,
":"
)
}
}
if
strings
.
HasPrefix
(
name
,
"sha256:"
)
{
deleteMap
[
name
]
=
struct
{}{}
deleteMap
[
name
]
=
struct
{}{}
}
}
}
log
.
Printf
(
"total blobs: %d"
,
len
(
deleteMap
))
log
.
Printf
(
"total blobs: %d"
,
len
(
deleteMap
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment