~singpolyma/dhall-ruby

8847b96a78b0b38a76defdbde6e3f65e97b543b7 — Stephen Paul Weber 2 years ago 3d24395
Multihash prefix on filename
1 files changed, 1 insertions(+), 1 deletions(-)

M lib/dhall/resolve.rb
M lib/dhall/resolve.rb => lib/dhall/resolve.rb +1 -1
@@ 185,7 185,7 @@ module Dhall

			def fetch(key, &block)
				if key.is_a?(String) && key.start_with?("sha256:")
					file = @dir + key.sub(/^sha256:/, "")
					file = @dir + key.sub(/^sha256:/, "1220")
					return Dhall.from_binary(file.binread) if file.exist?

					Promise.resolve(nil).then(&block).then do |result|