os: don't try to read executable path on baremetal
Baremetal systems usually pretend to be GOOS=linux, so an extra build tag is needed here.
Этот коммит содержится в:
родитель
e02727679f
коммит
04e8f44370
2 изменённых файлов: 2 добавлений и 2 удалений
|
@ -1,4 +1,4 @@
|
|||
// +build !linux
|
||||
// +build !linux baremetal
|
||||
|
||||
package os
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build linux
|
||||
// +build linux,!baremetal
|
||||
|
||||
package os
|
||||
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче