-
-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fresh does not support go mod vendor? #99
Comments
any progress on this issue? |
It seems My project folder is :
settings:
legacy:
force: false
interval: 0s
schema:
- name: name
path: .
commands:
install:
status: true
method: go build -o tmp/app.out server/main.go
run:
status: true
method: tmp/app.out
watcher:
extensions:
- go
paths:
- /
ignore:
paths:
- .git
- .realize
- vendor ref: oxequa/realize#217 (comment) After installing When you install The solution is
And please be careful |
Thanks @Mizumaki! Your solution works great! |
Fresh does not support go mod vendor?
I start a project with go mod. When I build and run my project, I can use
go build -mod=vendor cmd/main.go
andgo run -mod=vendor cmd/main.go
.But I can not use fresh, because the source of build step in fresh is
cmd := exec.Command("go", "build", "-o", buildPath(), root())
.Am I right? How can I use fresh in my project.
My project folder is :
├── cmd
│ └── main.go
├── go.mod
├── go.sum
├── internal
├── runner.conf
└── vendor
The text was updated successfully, but these errors were encountered: