minke-generator-go 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTE5YTI2NjAwMGQ3YzY0ZTc0NmQ4NmNlYjI5OTJkOTZhNDEyNGRmNw==
4
+ OWViZTQ0OTU2ZjEwZjg3NmQxYjVjM2NhNjBkNjkyM2ViOWY0ZDNiZQ==
5
5
  data.tar.gz: !binary |-
6
- NjQ0Mjk0ZTY1ZDkwYTdjNTRiYWFiZjhkNDI3NzM5ZGVjODlmZGI5NA==
6
+ ZGE0NjViZjIzNmQ3NWJkYWUxNDIzODYzY2NjMjUwOWEyMTcwYTZmMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTQyMDFlM2Q4ODkzNDg1YWMzMGE2MzRmOTUxMmJjNGZlNjk2N2Y5YTA5ZDlk
10
- YTFmZGY4N2YxMzIwNDdjYjg5ODAyOTBiOWQwYTdlMjg5ODhmNTU2ZmYyNTQx
11
- MmVjNDM4NGZjNTZmYTRkNWMyMzAwZDc2NmZmY2M4ZmEyMWNiODU=
9
+ NTM4NmY3YjdkOTcxNzA2ZjRjZWMyZTA3MTcxOGFjY2UxZTgzODIyYjI3OTRj
10
+ MDNjOTdkYWJmNDc3N2MxNTM4MTI0ZWRiM2RkZmE3NTcwOWJiYWNiMjM0ZmJl
11
+ OTNjMGU0ZGMyNDFmNDNiOTBjNTRmMmEyZTRlNzkzYjMzODI2M2Y=
12
12
  data.tar.gz: !binary |-
13
- YzMxMjgyMThkODdkYThlM2M5YTM5YjhjNzBiZmU1NDJlMWU5YjI3M2UzMTgx
14
- ZjU0NDkzNjJmNGZjZTAyNDE1MTkyYzAyY2JkYmY5NTk0NjgxZGE0ZDgxNTg4
15
- OTVkZWE3YzU2YjBlYzRiNDZjMDNiNGNjYzhiZmJhZmIwMDY3NjU=
13
+ Y2I2MjY4NmQ1ODMxMzJjMmU4OTM5ZTA2ZjQyZjkyYTY3NGNhZGIwMjI4YjQ0
14
+ OGY0OTZjNTMwY2MwMDEyYmE1NGEyMWM5MGNhYjBmMDFkMDMwNjhkMDQ3ZGU4
15
+ MTQyOTQ3OWMwM2U1NmRjMjYyNTI2NTRiNTM2NTk1MzQ5NmM1NzA=
@@ -14,15 +14,18 @@ module Minke
14
14
  config.build_settings = Minke::Generators::BuildSettings.new
15
15
 
16
16
  config.build_settings.build_commands = Minke::Generators::BuildCommands.new.tap do |bc|
17
- bc.fetch = [['/bin/bash', '-c', 'go get -t -v -d ./... && echo Downloaded packages']]
17
+ bc.fetch = [['/bin/bash', '-c', "export GOPATH=/packages && go get -v -d -t $(go list -f '{{ join .Imports \"\\n\" }}' ./... | grep -v '<%= namespace %>/<%= application_name %>') && echo Downloaded packages"]]
18
18
  bc.build = [['/bin/bash', '-c', 'go build -a -installsuffix cgo -ldflags \'-s\' -o <%= application_name %>']]
19
- bc.test = [['/bin/bash', '-c', 'go test ./...']]
19
+ bc.test = [['/bin/bash', '-c', 'go test $(go list ./... | grep -v /vendor/)']]
20
20
  end
21
21
 
22
22
  config.build_settings.docker_settings = Minke::Generators::DockerSettings.new.tap do |bs|
23
23
  bs.image = 'golang:latest'
24
24
  bs.env = ['CGO_ENABLED=0']
25
- bs.binds = ["#{ENV['GOPATH']}/src:/go/src"]
25
+ bs.binds = [
26
+ "<%= src_root %>:/go/src/<%= namespace %>/<%= application_name %>",
27
+ "<%= src_root %>/vendor:/packages/src"
28
+ ]
26
29
  bs.working_directory = '/go/src/<%= namespace %>/<%= application_name %>'
27
30
  end
28
31
 
@@ -1,7 +1,7 @@
1
1
  module Minke
2
2
  module Generators
3
3
  module GoMicroservice
4
- VERSION = "0.6.0"
4
+ VERSION = "0.7.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minke-generator-go
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nic Jackson