File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -54,11 +54,11 @@ Following tasks are generated
54
54
# Rakefile
55
55
require " go_gem/rake_task"
56
56
57
- GoGem ::RakeTask .new (" gem_name" ) do |config |
58
- config .task_namespace = " go5"
59
- config .go_bin_path = " /path/to/go"
60
- config .go_test_args = " #{ GoGem :: RakeTask :: DEFAULT_GO_TEST_ARGS } -race "
61
- config .target_dir = " /dir/to/go-mod/"
57
+ GoGem ::RakeTask .new (" gem_name" ) do |t |
58
+ t .task_namespace = " go5"
59
+ t .go_bin_path = " /path/to/go"
60
+ t .go_test_args = " -mod=readonly "
61
+ t .target_dir = " /dir/to/go-mod/"
62
62
end
63
63
```
64
64
Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ module GoGem
16
16
# # Rakefile
17
17
# require "go_gem/rake_task"
18
18
#
19
- # GoGem::RakeTask.new("gem_name") do |config |
20
- # config .task_namespace = "go5"
21
- # config .go_bin_path = "/path/to/go"
22
- # config .go_test_args = "#{GoGem::RakeTask::DEFAULT_GO_TEST_ARGS} -race "
23
- # config .target_dir = "/dir/to/go-mod/"
19
+ # GoGem::RakeTask.new("gem_name") do |t |
20
+ # t .task_namespace = "go5"
21
+ # t .go_bin_path = "/path/to/go"
22
+ # t .go_test_args = "-mod=readonly "
23
+ # t .target_dir = "/dir/to/go-mod/"
24
24
# end
25
25
class RakeTask < ::Rake ::TaskLib
26
26
DEFAULT_TASK_NAMESPACE = :go
@@ -51,7 +51,7 @@ class RakeTask < ::Rake::TaskLib
51
51
52
52
# @param gem_name [String]
53
53
# @yield configuration of {RakeTask}
54
- # @yieldparam config [RakeTask]
54
+ # @yieldparam t [RakeTask]
55
55
def initialize ( gem_name )
56
56
super ( )
57
57
You can’t perform that action at this time.
0 commit comments