Skip to content

Commit c54108c

Browse files
committed
Remove .env file support
Signed-off-by: Tamal Saha <[email protected]>
1 parent 2a55a7c commit c54108c

File tree

9 files changed

+1
-741
lines changed

9 files changed

+1
-741
lines changed

go.mod

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
module gomodules.xyz/venv
22

33
go 1.24.1
4-
5-
require github.com/joho/godotenv v1.5.1

go.sum

-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
2-
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=

main.go

+1-9
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import (
55
"os"
66
"os/exec"
77
"strings"
8-
9-
"github.com/joho/godotenv"
108
)
119

1210
func main() {
@@ -17,12 +15,6 @@ func main() {
1715
os.Exit(1)
1816
}
1917

20-
// Load environment variables from .env file
21-
err := godotenv.Load()
22-
if err != nil {
23-
fmt.Println("Warning: Could not load .env file:", err)
24-
}
25-
2618
// Join all arguments into a single command string
2719
commandArgs := os.Args[1:]
2820
command := strings.Join(commandArgs, " ")
@@ -49,7 +41,7 @@ func main() {
4941
cmd.Stderr = os.Stderr
5042

5143
// Run the command
52-
err = cmd.Run()
44+
err := cmd.Run()
5345
if err != nil {
5446
fmt.Fprintf(os.Stderr, "Error executing command: %v\n", err)
5547
os.Exit(1)

vendor/github.com/joho/godotenv/.gitignore

-1
This file was deleted.

vendor/github.com/joho/godotenv/LICENCE

-23
This file was deleted.

vendor/github.com/joho/godotenv/README.md

-202
This file was deleted.

0 commit comments

Comments
 (0)