Skip to content

Auto-remove created directory in tmp #54

@silentcycler

Description

@silentcycler

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

$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions