This repository has been archived by the owner on Dec 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #172 from 0xd61/cgo_vendor_hack
Add dummy files to preserve vendor directories
- Loading branch information
Showing
8 changed files
with
41 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ jobs: | |
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v2.3.0 | ||
with: | ||
version: v1.28.3 | ||
version: v1.44.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package cgoimgui |
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 @@ | ||
package cgofreetype |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package cgowrapper |
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,20 @@ | ||
// +build required | ||
|
||
package imgui | ||
|
||
// This file exists purely to prevent the golang toolchain from stripping | ||
// away the c source directories and files when `go mod vendor` is used | ||
// to populate a `vendor/` directory of a project depending on `imgui-go`. | ||
// https://github.com/golang/go/issues/26366 | ||
// | ||
// How it works: | ||
// - every directory which only includes c source files receives a govendorkeep.go file. | ||
// - every directory we want to preserve is included here as a _ import. | ||
// - this file is given a build to exclude it from the regular build. | ||
|
||
import ( | ||
// Prevent go tooling from stripping out the c source files. | ||
_ "github.com/inkyblackness/imgui-go/v4/imgui" | ||
_ "github.com/inkyblackness/imgui-go/v4/wrapper" | ||
_ "github.com/inkyblackness/imgui-go/v4/imgui/misc/freetype" | ||
) |