Skip to content

Commit 1d9c601

Browse files
committed
fix: go install command installs with correct binary name
1 parent 9b8144b commit 1d9c601

4 files changed

Lines changed: 14 additions & 123 deletions

File tree

Makefile

Lines changed: 0 additions & 67 deletions
This file was deleted.

Taskfile.yml

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ tasks:
4848
-o {{.BINARY_NAME}}
4949
-gcflags="{{.DEBUG_GCFLAGS}}"
5050
-ldflags "{{.COMMON_LDFLAGS}} {{.ENV_LDFLAGS}} {{.DEBUG_LDFLAGS}}"
51+
./cmd/mbvpn
5152
5253
build-release:
5354
desc: Build release version with optimizations
@@ -57,29 +58,7 @@ tasks:
5758
{{.RELEASE_BUILDFLAGS}}
5859
-o {{.BINARY_NAME}}
5960
-ldflags "{{.COMMON_LDFLAGS}} {{.ENV_LDFLAGS}} {{.RELEASE_LDFLAGS}}"
60-
61-
install:
62-
desc: Install release version (default)
63-
cmds:
64-
- task: install-release
65-
66-
install-debug:
67-
desc: Install debug version with debug symbols
68-
cmds:
69-
- >-
70-
go install
71-
-gcflags="{{.DEBUG_GCFLAGS}}"
72-
-ldflags "{{.COMMON_LDFLAGS}} {{.ENV_LDFLAGS}} {{.DEBUG_LDFLAGS}}"
73-
.
74-
75-
install-release:
76-
desc: Install release version with optimizations
77-
cmds:
78-
- >-
79-
go install
80-
{{.RELEASE_BUILDFLAGS}}
81-
-ldflags "{{.COMMON_LDFLAGS}} {{.ENV_LDFLAGS}} {{.RELEASE_LDFLAGS}}"
82-
.
61+
./cmd/mbvpn
8362
8463
test:
8564
desc: Run all tests

cmd/mbvpn/main.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
3+
*/
4+
package main
5+
6+
import (
7+
"github.com/malwarebytes/mbvpn-linux/cmd"
8+
)
9+
10+
func main() {
11+
cmd.Execute()
12+
}

main.go

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)