mirror of
https://github.com/mudler/luet.git
synced 2025-08-22 01:02:57 +00:00
16 lines
289 B
Go
16 lines
289 B
Go
package single
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"path/filepath"
|
|
)
|
|
|
|
// Filename returns an absolute filename, appropriate for the operating system
|
|
func (s *Single) Filename() string {
|
|
if len(Lockfile) > 0 {
|
|
return Lockfile
|
|
}
|
|
return filepath.Join(os.TempDir(), fmt.Sprintf("%s.lock", s.name))
|
|
}
|