unixpickle / gobfuscate

Obfuscate Go binaries and packages
BSD 2-Clause "Simplified" License
1.45k stars 157 forks source link

Auto-remove created directory in tmp #54

Open silentcycler opened 1 year ago

silentcycler commented 1 year ago

Hello! While my code is running, a new directory is created in tmp but when my code is completed directory removes. What am i doing wrong?

$ gobfuscate -verbose main/cmd /home/usr/trash

2023/05/29 23:21:13 Copying GOPATH...
2023/05/29 23:21:16 Obfuscating package names...
2023/05/29 23:21:23 Obfuscating strings...
2023/05/29 23:21:23 Obfuscating symbols...
Renamed 2 occurrences in 2 files in 2 packages.

[Verbose] Temporary path: /tmp/1839736580
[Verbose] Go build command: go build -trimpath -ldflags -s -w -extldflags '-static' -tags  -o /home/usr/trash cfkfigmeokpclafjihmk/epcebkljdhffppecbgko
[Verbose] Environment variables:
GO111MODULE=off
GOROOT=/home/usr
GOARCH=amd64
GOOS=linux
GOPATH=/tmp/1839736580
PATH=/home/usr/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/home/usr/goworkspace/bin
GOCACHE=/tmp/1839736580/cache

$