-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(stdlib): generate placeholder.go file when needed (#4954)
Go's vendoring semantics mean we need all Flux packages to also be Go packages. This change handles that logic. This is similar to the flux_gen.go solution we had previously, but different in one key way. The contents of placeholder.go are static. This means we do not need to treat them as special binary files or otherwise. Additionally the new name of placeholder.go is clear what its purpose is.
- Loading branch information
1 parent
97adb3e
commit 64ae871
Showing
44 changed files
with
305 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
stdlib/contrib/RohanSreerama5/naiveBayesClassifier/placeholder.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package naiveBayesClassifier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package anomalydetection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package statsmodels |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package alerta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package servicenow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package tickscript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package victorops |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package zenoss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package discord |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package bigpanda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package teams |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package telegram |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package webexteams |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package boundaries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package aggregate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package bitwise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package oee |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package query |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// DO NOT EDIT: This file is autogenerated via the builtin command. | ||
// | ||
// This file ensures that this directory is a Go package | ||
|
||
package usage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package stdlib | ||
|
||
//go:generate go generate ../libflux/go/libflux | ||
//go:generate go run github.com/influxdata/flux/internal/cmd/builtin generate --go-pkg github.com/influxdata/flux/stdlib --import-file packages.go | ||
//go:generate go run github.com/influxdata/flux/internal/cmd/builtin generate --go-pkg github.com/influxdata/flux/stdlib |
Oops, something went wrong.