wslc-wip 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/wip/error_interpreter.rb +20 -0
- data/lib/wip/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5d7c6ca103234cf197e8ac46015705762a93febd37b57fd2b20fef283bfbf91c
|
|
4
|
+
data.tar.gz: 127f768a68ed87d54a72dcf8ea5ef9d6daeae5cecc0a6a2475b683f3bf2309c6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9261bab775ca93d1509886c2b94a19c5b2caeb422ca23a20652f9e23e49b247a05a9267043c163a26c9fffb50497cfbcbfde7acba7186222549414f95c1670cf
|
|
7
|
+
data.tar.gz: 6584d50a4d7199522a58f7dceb9b72d103b34b2b6d1a87c8a106ae85d4cefdf79c6870889936f521f7a6654afcf8e49d7a5262a47c7080ee919160fceffec56c
|
|
@@ -10,6 +10,11 @@ module Wip
|
|
|
10
10
|
/rsync[^\n]*executable file not found/i,
|
|
11
11
|
/executable file not found[^\n]*rsync/i
|
|
12
12
|
)
|
|
13
|
+
VOLUME_LIMIT_REACHED = Regexp.union(
|
|
14
|
+
/0x8007000e/i,
|
|
15
|
+
/too many mounted volumes/i,
|
|
16
|
+
/マウントされているボリュームが多すぎます/
|
|
17
|
+
)
|
|
13
18
|
|
|
14
19
|
def initialize(architecture: Environment.new.architecture)
|
|
15
20
|
@architecture = architecture
|
|
@@ -17,6 +22,7 @@ module Wip
|
|
|
17
22
|
|
|
18
23
|
def interpret(output)
|
|
19
24
|
case output
|
|
25
|
+
when VOLUME_LIMIT_REACHED then volume_limit_message
|
|
20
26
|
when /pull access denied|insufficient_scope|authorization failed/i then registry_message
|
|
21
27
|
when %r{no matching manifest for linux/(?:amd64|arm64)}i then architecture_message
|
|
22
28
|
when RSYNC_MISSING then rsync_message
|
|
@@ -25,6 +31,20 @@ module Wip
|
|
|
25
31
|
|
|
26
32
|
private
|
|
27
33
|
|
|
34
|
+
def volume_limit_message
|
|
35
|
+
<<~TEXT
|
|
36
|
+
The WSLC session has reached its mounted-volume limit.
|
|
37
|
+
|
|
38
|
+
Stop any containers you no longer need, then restart the session:
|
|
39
|
+
|
|
40
|
+
wslc container list
|
|
41
|
+
wslc container stop <container-name>
|
|
42
|
+
wslc system session terminate
|
|
43
|
+
|
|
44
|
+
Then retry the command.
|
|
45
|
+
TEXT
|
|
46
|
+
end
|
|
47
|
+
|
|
28
48
|
def rsync_message
|
|
29
49
|
<<~TEXT
|
|
30
50
|
`wip sync` needs rsync inside the image.
|
data/lib/wip/version.rb
CHANGED