-
Notifications
You must be signed in to change notification settings - Fork 294
(SDI-2036) Fix #1205 add darwin to binary release #1236
Conversation
ce090da
to
19266fa
Compare
"time" | ||
|
||
"github.com/intelsdi-x/snap/core" | ||
"github.com/intelsdi-x/snap/core/cdata" | ||
"github.com/intelsdi-x/snap/plugin/helper" | ||
) | ||
|
||
var ( | ||
PluginName = "snap-plugin-collector-mock2" | ||
SnapPath = os.ExpandEnv(os.Getenv("SNAP_PATH")) |
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.
Is SnapPath used anywhere?
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.
@@ -46,11 +47,11 @@ var ( | |||
LOG_LEVEL = log.FatalLevel | |||
|
|||
SNAP_PATH = os.ExpandEnv(os.Getenv("SNAP_PATH")) |
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.
Same thing here -- Do we need SNAP_PATH if all file paths are going through helper?
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.
This one can be removed.
SNAP_AUTODISCOVER_PATH = fmt.Sprintf("%s/plugin", SNAP_PATH) | ||
log.Warning(fmt.Sprintf("SNAP_AUTODISCOVER_PATH has been set to SNAP_PATH/plugin (%s). This might cause test failures", SNAP_AUTODISCOVER_PATH)) | ||
|
||
SNAP_PATH = helper.BuildPath |
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.
This seems redundant since SNAP_PATH is set to helper.BuildPath at the top of the file.
@@ -1,7 +1,7 @@ | |||
/* | |||
http://www.apache.org/licenses/LICENSE-2.0.txt | |||
|
|||
|
|||
ld |
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.
?
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.
err, yeah needs to be removed.
Currently we only build linux binaries. This update uses GOOS/GOARCH to crosscompile for MacOS. * remove dns update since we have multiple binaries * follow s3/${GOOS}/${GOARCH}/file convention * use helper.PluginFilePath to determine binary path * change latest folder -> last git tag, latest_build folder -> last pr
@@ -11,15 +11,14 @@ env: | |||
global: | |||
- SNAP_SOURCE=/home/travis/gopath/src/github.com/intelsdi-x/snap | |||
- GO15VENDOREXPERIMENT=1 | |||
- secure: kSsbBOCrSRyWx6yhSwhTYIWRId4WNMkO9OhMphBPXb5kDEd+asanCybuBKdOSgzuqrzBbQsuQjzhw+iZwdiPoQInZyDxeVl7frroNvg94n+q4tpPQOPzJ6gN15MCHSq3m1lCk3XVrESGEBTqmdmUtZhY+RfxSXuq1xkDMesst2f+gONd5Bl+QFiboRqvjUXwGC+e3JnZI2LxWjYZspNh2ZS6c5mvbhufDPV5MD6+jlZppzHcNkHAtHOt3KNoTFai8X0U8MYiEax3mSIAHjYzQQayS5al54MfgcVo1r4gWmPOybkyb5+/DyNSUT4KY+XVIrxV68fSOuCnLxLEaQZ9W0c0WuetmUU1fOT8Iy9q0qLQq9IknXNnfsCEGdwB2XKfyNvKEtkWbi6b6idrok5d1y7b8Qt5olveczGx0cRbpXQ0BTZ/bnQMhL9tpUeRltbDey6dsSsTJjnatqH7CdeEAV0ZeY+LjBgTukps4TlEHTn0ddEzhR1rrRsQ3OB0kT59Y3BCJ4kstzpMsTFWKUTMr/75UR1g5XETfOt0BtXkM3I343AIjJt+MQg/bW26ZOTbqPbqVO3Z7eDf0MaRC4Mugm809ekMZARTLAmq4FMIutDsTTT741IgWZQrMDI37WUztDUE1WFDzcTkAk99yc6gBjZ+0dZd1Qc7RQR0RMBi4M4= |
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.
What was this one used for?
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.
dns updates to point latest to the linux binary. it's no longer used.
Currently we only build linux binaries. This update uses GOOS/GOARCH to
crosscompile for MacOS.