always build with GO111MODULES until stable

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-13 13:30:13 -06:00
parent 69ad3b12ac
commit 34f33db94a
5 changed files with 28 additions and 8 deletions

View File

@ -16,18 +16,21 @@ ifeq ($(GO111MODULE),)
@echo @echo
@echo export GO111MODULE=off @echo export GO111MODULE=off
@echo @echo
sleep 3 sleep 1
endif endif
make nocui gocui andlabs make nocui gocui andlabs
nocui: nocui:
go build -C nocui -v -buildmode=plugin -o ../nocui.so # go build -C nocui -v -buildmode=plugin -o ../nocui.so
make -C nocui
gocui: gocui:
go build -C gocui -v -buildmode=plugin -o ../gocui.so # go build -C gocui -v -buildmode=plugin -o ../gocui.so
make -C gocui
andlabs: andlabs:
go build -C andlabs -v -buildmode=plugin -o ../andlabs.so # go build -C andlabs -v -buildmode=plugin -o ../andlabs.so
make -C andlabs
something: something:
ifeq (,$(wildcard go.mod)) ifeq (,$(wildcard go.mod))

View File

@ -1,12 +1,12 @@
all: plugin all: plugin
ldd ../gocui.so ldd ../gocui.so
plugin:
GO111MODULE=off go build -v -buildmode=plugin -o ../gocui.so
goget: goget:
go get -v -t -u go get -v -t -u
plugin:
go build -v -x -buildmode=plugin -o ../gocui.so
objdump: objdump:
objdump -t ../gocui.so |less objdump -t ../gocui.so |less

View File

@ -5,7 +5,7 @@ package main
*/ */
import ( import (
log "go.wit.com/log" "go.wit.com/log"
) )
var outputS []string var outputS []string

BIN
gocui/gocui Executable file

Binary file not shown.

View File

@ -42,6 +42,7 @@ type node struct {
// horizontal means layout widgets like books on a bookshelf // horizontal means layout widgets like books on a bookshelf
// vertical means layout widgets like books in a stack // vertical means layout widgets like books in a stack
// direction widget.Orientation
direction widget.Orientation direction widget.Orientation
// This is how the values are passed back and forth // This is how the values are passed back and forth
@ -164,6 +165,22 @@ func PluginChannel() chan widget.Action {
return pluginChan return pluginChan
} }
/*
func convertString(val any) string {
switch v := val.(type) {
case bool:
n.B = val.(bool)
case string:
n.label = val.(string)
n.S = val.(string)
case int:
n.I = val.(int)
default:
log.Error(errors.New("Set() unknown type"), "v =", v)
}
}
*/
func getString(A any) string { func getString(A any) string {
if A == nil { if A == nil {
log.Warn("getString() got nil") log.Warn("getString() got nil")