mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Fix module path for non-modified repo
This commit is contained in:
parent
54bf8c1142
commit
62b3775e2f
1 changed files with 4 additions and 4 deletions
|
|
@ -1,12 +1,12 @@
|
|||
package debug
|
||||
|
||||
import (
|
||||
"github.com/samber/lo"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
)
|
||||
"runtime/debug"
|
||||
|
||||
import "runtime/debug"
|
||||
"github.com/samber/lo"
|
||||
)
|
||||
|
||||
// Why go doesn't provide this as a map already is beyond me.
|
||||
var buildSettings = map[string]string{}
|
||||
|
|
@ -20,7 +20,7 @@ func init() {
|
|||
buildSettings = lo.Associate(buildInfo.Settings, func(setting debug.BuildSetting) (string, string) {
|
||||
return setting.Key, setting.Value
|
||||
})
|
||||
if isLocalBuild() {
|
||||
if isLocalBuild() || buildInfo.Path == "" {
|
||||
modulePath := RelativePath("..", "..", "..")
|
||||
LocalModulePath, _ = filepath.Abs(modulePath)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue