Skip to content

Commit

Permalink
Remove cmd/elastic-agent/elastic-agent.go as its not used. (elastic#1…
Browse files Browse the repository at this point in the history
…8366)

* Remove cmd/elastic-agent/elastic-agent.go as its not used.

* Remove the usage of cmd/elastic-agent.
  • Loading branch information
blakerouse authored May 8, 2020
1 parent 95fd6e8 commit 43f5689
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
25 changes: 0 additions & 25 deletions x-pack/elastic-agent/cmd/elastic-agent/elastic-agent.go

This file was deleted.

5 changes: 0 additions & 5 deletions x-pack/elastic-agent/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ func (Build) GenerateConfig() error {
// Do not use directly, use crossBuild instead.
func GolangCrossBuildOSS() error {
params := devtools.DefaultGolangCrossBuildArgs()
params.InputFiles = []string{"cmd/elastic-agent/elastic-agent.go"}
params.LDFlags = flagsSet()
return devtools.GolangCrossBuild(params)
}
Expand All @@ -117,7 +116,6 @@ func GolangCrossBuildOSS() error {
// Do not use directly, use crossBuild instead.
func GolangCrossBuild() error {
params := devtools.DefaultGolangCrossBuildArgs()
params.InputFiles = []string{"cmd/elastic-agent/elastic-agent.go"}
params.OutputDir = "build/golang-crossbuild"
params.LDFlags = flagsSet()
if err := devtools.GolangCrossBuild(params); err != nil {
Expand All @@ -142,7 +140,6 @@ func (Build) BinaryOSS() error {
"build",
"-o", filepath.Join(buildDir, "elastic-agent-oss"),
"-ldflags", flags(),
"cmd/elastic-agent/elastic-agent.go",
)
}

Expand All @@ -153,7 +150,6 @@ func (Build) Binary() error {
"build",
"-o", filepath.Join(buildDir, "elastic-agent"),
"-ldflags", flags(),
"cmd/elastic-agent/elastic-agent.go",
)
}

Expand All @@ -165,7 +161,6 @@ func (Build) Dev() error {
"-tags", "dev",
"-o", filepath.Join(buildDir, "elastic-agent"),
"-ldflags", flags(),
"cmd/elastic-agent/elastic-agent.go",
)
}

Expand Down

0 comments on commit 43f5689

Please sign in to comment.