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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 00dbc091bf03ff619a8d2096e87a7c9fea05194829a5378448b0547d1b3133a9
4
- data.tar.gz: 4a44f1a28d3dc37a4f58f4b171e5034c714c83fe123b4870ac30862fbe0a10d4
3
+ metadata.gz: 5d7c6ca103234cf197e8ac46015705762a93febd37b57fd2b20fef283bfbf91c
4
+ data.tar.gz: 127f768a68ed87d54a72dcf8ea5ef9d6daeae5cecc0a6a2475b683f3bf2309c6
5
5
  SHA512:
6
- metadata.gz: f9d78416a789d166c2db523d2b4f6e32e54e3e099f6f6cb369b5d7e1c46b8bc95c3a2088cb211add014a9fc59313985bdbef9f573de70cd86b41f0b936df4cbd
7
- data.tar.gz: 7131cba0e0935a53bb7966ddd5ce2254374d78d08093b7ef0ccd987848184a2be834938bee169aaad78cfaeb77b9317af94df65c9127fe05559a8f926c51fef2
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wip
4
- VERSION = '0.13.0'
4
+ VERSION = '0.13.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wslc-wip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wip contributors