Skip to content

Commit

Permalink
Fix ld issue on go 1.23
Browse files Browse the repository at this point in the history
As per pgavlin/text#1, a workaround for this so go 1.23 works is this ld
flag -checklintname=0 until they get around to fixing it.
  • Loading branch information
brandonpollack23 committed Aug 20, 2024
1 parent d75251c commit 08e06cf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,21 @@ generate::
echo "This command does not do anything anymore. It will be removed in a future version."

build:: build_proto build_display_wasm go.ensure
cd pkg && go install -ldflags "-X github.com/pulumi/pulumi/pkg/v3/version.Version=${VERSION}" ${PROJECT}
cd pkg && go install -ldflags "-X github.com/pulumi/pulumi/pkg/v3/version.Version=${VERSION} -checklinkname=0" ${PROJECT}

build_display_wasm:: go.ensure
cd pkg && GOOS=js GOARCH=wasm go build -o ../bin/pulumi-display.wasm -ldflags "-X github.com/pulumi/pulumi/pkg/v3/version.Version=${VERSION}" ./backend/display/wasm
cd pkg && GOOS=js GOARCH=wasm go build -o ../bin/pulumi-display.wasm -ldflags "-X github.com/pulumi/pulumi/pkg/v3/version.Version=${VERSION} -checklinkname=0" ./backend/display/wasm

install:: .ensure.phony go.ensure
cd pkg && GOBIN=$(PULUMI_BIN) go install -ldflags "-X github.com/pulumi/pulumi/pkg/v3/version.Version=${VERSION}" ${PROJECT}
cd pkg && GOBIN=$(PULUMI_BIN) go install -ldflags "-X github.com/pulumi/pulumi/pkg/v3/version.Version=${VERSION} -checklinkname=0" ${PROJECT}

build_debug::
cd pkg && go install -gcflags="all=-N -l" -ldflags "-X github.com/pulumi/pulumi/pkg/v3/version.Version=${VERSION}" ${PROJECT}
cd pkg && go install -gcflags="all=-N -l" -ldflags "-X github.com/pulumi/pulumi/pkg/v3/version.Version=${VERSION} -checklinkname=0" ${PROJECT}

build_cover::
cd pkg && go build -cover -o ../bin/pulumi \
-coverpkg github.com/pulumi/pulumi/pkg/v3/...,github.com/pulumi/pulumi/sdk/v3/... \
-ldflags "-X github.com/pulumi/pulumi/pkg/v3/version.Version=${VERSION}" ${PROJECT}
-ldflags "-X github.com/pulumi/pulumi/pkg/v3/version.Version=${VERSION} -checklinkname=0" ${PROJECT}

install_cover:: build_cover
cp bin/pulumi $(PULUMI_BIN)
Expand All @@ -90,7 +90,7 @@ developer_docs::
install_all:: install

dist:: build
cd pkg && go install -ldflags "-X github.com/pulumi/pulumi/pkg/v3/version.Version=${VERSION}" ${PROJECT}
cd pkg && go install -ldflags "-X github.com/pulumi/pulumi/pkg/v3/version.Version=${VERSION} -checklinkname=0" ${PROJECT}

.PHONY: brew
# NOTE: the brew target intentionally avoids the dependency on `build`, as each language SDK has its own brew target
Expand Down

0 comments on commit 08e06cf

Please sign in to comment.