Skip to content

Commit

Permalink
fix: go build with -mod=mod to ignore vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
joelmoss committed Oct 11, 2024
1 parent 2dd8ee7 commit 64e23f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ gemspec = Bundler.load_gemspec('proscenium.gemspec')

desc 'Compile for local os/arch'
task 'compile:local' => 'clobber:ext' do
sh %(go build -buildmode=c-shared -o #{ext_dir}/proscenium main.go)
sh %(go build -buildmode=c-shared -mod=mod -o #{ext_dir}/proscenium main.go)
end

desc 'Build Proscenium gems into the pkg directory.'
Expand Down
2 changes: 1 addition & 1 deletion lib/proscenium/importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def import(filepath = nil, resolve: nil, **)
unless self.imported.key?(filepath)
# ActiveSupport::Notifications.instrument('sideload.proscenium', identifier: value)

self.imported[filepath] = { **options }
self.imported[filepath] = { ** }
self.imported[filepath][:digest] = Utils.digest(filepath) if css_module
end

Expand Down

0 comments on commit 64e23f9

Please sign in to comment.