File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ def cache_key(digest)
19
19
when "tarball"
20
20
digest << @params [ :url ]
21
21
when "local"
22
- digest << File . mtime ( @params [ :src ] ) . to_i . to_s
22
+ digest << File . mtime ( @params [ :path ] ) . to_i . to_s
23
23
else
24
24
raise "unknown source type: #{ @params [ :type ] } "
25
25
end
@@ -75,7 +75,7 @@ def fetch(executor)
75
75
)
76
76
when "local"
77
77
executor . mkdir_p File . dirname ( src_dir )
78
- executor . cp_r @params [ :src ] , src_dir
78
+ executor . cp_r @params [ :path ] , src_dir
79
79
else
80
80
raise "unknown source type: #{ @params [ :type ] } "
81
81
end
Original file line number Diff line number Diff line change @@ -187,7 +187,11 @@ def compute_build_source(options)
187
187
if options [ :patches ]
188
188
RubyWasm . logger . warn "Patches specified through --patch are ignored for local sources"
189
189
end
190
- return { type : "local" , path : src_name }
190
+ # @type var local_source: RubyWasm::Packager::build_source_local
191
+ local_source = { type : "local" , path : src_name }
192
+ # @type var local_source: RubyWasm::Packager::build_source
193
+ local_source = local_source . merge ( name : "local" , patches : [ ] )
194
+ return local_source
191
195
end
192
196
# Otherwise, it's an unknown source.
193
197
raise (
You can’t perform that action at this time.
0 commit comments