douyun1852 2018-05-26 12:14
浏览 29

如何在Windows中启动并运行Github应用“ vehicle-tracker-api”

I strived to get up and running the Github repository vehicle-tracker-api on my box (Windows 8 professional 64 bits) but can't get it right till now...

I followed all the steps as stated in the readme.md but stumbled.

To fix miscalleanous issues that occured despite sticking properly to the instructions, I managed to install lacking dependencies I identified:

  1. Mingw-W64 (explicit)
  2. Swagger 2.0 (not very sure of it, there might be another better option I doubt but it did the business).

It seems that my troubles lie in the 2 remaining directives in main.go knowing the first one is fixed so far

//go:generate swagger generate spec -o data/swagger.json
//go:generate rm -rf statik/statik.go
//go:generate statik -src data/
package main

Launching

go generate

yieds the following error message

main.go:2: running "rm": exec: "rm" : executable not found in %PATH%

Question:

What should I do to get it up and running in Windows?

Flimzy pointed out in the comment thread below that the build process try to execute the unix-likerm command, so

Is there a way to rewrite the platform dependent directive //go:generate rm -rf statik/statik.go into the Windows manner.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 slam rangenet++配置
    • ¥15 对于相关问题的求解与代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
    • ¥15 保护模式-系统加载-段寄存器
    • ¥15 电脑桌面设定一个区域禁止鼠标操作
    • ¥15 求NPF226060磁芯的详细资料
    • ¥15 使用R语言marginaleffects包进行边际效应图绘制
    • ¥20 usb设备兼容性问题
    • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊