-
Notifications
You must be signed in to change notification settings - Fork 30
Conversation
@@ -64,7 +64,6 @@ type Module struct { | |||
Import string `mapstructure:"import"` // if not specified, this is the path part of the go mods | |||
GoMod string `mapstructure:"gomod"` // a gomod-compatible spec for the module | |||
Path string `mapstructure:"path"` // an optional path to the local version of this module | |||
Core bool `mapstructure:"core"` // whether this module comes from core, meaning that no further dependencies will be added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say that we should keep this property for a couple of releases, telling users what to use instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there! There's one typo, and one line needs to be removed. After this, I'll approve and merge. Thank you for your patience :-)
internal/builder/config_test.go
Outdated
assert.Empty(t, cfg.Extensions[0].GoMod) | ||
} | ||
|
||
func TestDepricatedCore(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
func TestDepricatedCore(t *testing.T) { | |
func TestDeprecatedCore(t *testing.T) { |
internal/builder/config_test.go
Outdated
Extensions: []Module{ | ||
{ | ||
Import: "go.opentelemetry.io/collector/receiver/jaegerreceiver", | ||
GoMod: "go.opentelemetry.io/collector v0.36.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove this line? Previously, only the import and "core" were required, and this test would reflect that.
Fixes open-telemetry#15 Signed-off-by: yugo-horie <u5.horie@gmail.com>
Fixes #15
I supposed to rewrite
TestModuleFromCore
following #12 (comment)Signed-off-by: yugo-horie u5.horie@gmail.com