-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugin: make the plugin preload work again
License: MIT Signed-off-by: Jakub Sztandera <[email protected]>
- Loading branch information
Showing
4 changed files
with
28 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
*.so | ||
*/main |
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,18 @@ | ||
#!/bin/bash | ||
|
||
dir=${1:?first paramater with dir to work in is required} | ||
pkg=${2:?second parameter with full name of the package is required} | ||
main_pkg="$dir/main" | ||
|
||
shortpkg="uniquepkgname" | ||
|
||
mkdir -p "$main_pkg" | ||
|
||
cat > "$main_pkg/main.go" <<EOL | ||
package main | ||
import ( | ||
$shortpkg "$pkg" | ||
) | ||
var Plugins = $shortpkg.Plugins | ||
EOL |
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 main | ||
package git | ||
|
||
import ( | ||
"compress/zlib" | ||
|