-
Notifications
You must be signed in to change notification settings - Fork 752
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In order to protect users of prebid-server that don't use CGO, add bu…
…ild flag.
- Loading branch information
Showing
25 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
modules/fiftyonedegrees/devicedetection/account_info_extractor.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
|
2 changes: 2 additions & 0 deletions
2
modules/fiftyonedegrees/devicedetection/account_info_extractor_test.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
|
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,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import "slices" | ||
|
2 changes: 2 additions & 0 deletions
2
modules/fiftyonedegrees/devicedetection/account_validator_test.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
|
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,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
|
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,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
|
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,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
// Context keys for device detection | ||
|
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,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
|
2 changes: 2 additions & 0 deletions
2
modules/fiftyonedegrees/devicedetection/device_detector_test.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
|
2 changes: 2 additions & 0 deletions
2
modules/fiftyonedegrees/devicedetection/device_info_extractor.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
|
2 changes: 2 additions & 0 deletions
2
modules/fiftyonedegrees/devicedetection/device_info_extractor_test.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
|
2 changes: 2 additions & 0 deletions
2
modules/fiftyonedegrees/devicedetection/evidence_extractor.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
|
2 changes: 2 additions & 0 deletions
2
modules/fiftyonedegrees/devicedetection/evidence_extractor_test.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
|
2 changes: 2 additions & 0 deletions
2
modules/fiftyonedegrees/devicedetection/fiftyone_device_types.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
|
2 changes: 2 additions & 0 deletions
2
modules/fiftyonedegrees/devicedetection/fiftyone_device_types_test.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
|
2 changes: 2 additions & 0 deletions
2
modules/fiftyonedegrees/devicedetection/hook_auction_entrypoint.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
|
2 changes: 2 additions & 0 deletions
2
modules/fiftyonedegrees/devicedetection/hook_raw_auction_request.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
|
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,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
// Prefixes in literal format | ||
|
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,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
|
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,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
|
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,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
|
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,13 @@ | ||
//go:build !cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
"encoding/json" | ||
|
||
"github.com/prebid/prebid-server/v2/modules/moduledeps" | ||
) | ||
|
||
func Builder(rawConfig json.RawMessage, _ moduledeps.ModuleDeps) (interface{}, error) { | ||
panic("Not implemented when CGO_ENABLED=0") | ||
} |
2 changes: 2 additions & 0 deletions
2
modules/fiftyonedegrees/devicedetection/request_headers_extractor.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
|
2 changes: 2 additions & 0 deletions
2
modules/fiftyonedegrees/devicedetection/request_headers_extractor_test.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
|
2 changes: 2 additions & 0 deletions
2
modules/fiftyonedegrees/devicedetection/sua_payload_extractor.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//go:build cgo | ||
|
||
package devicedetection | ||
|
||
import ( | ||
|