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条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 设计一款异域新娘的视频相亲软件需要哪些技术支持
    • ¥15 stata安慰剂检验作图但是真实值不出现在图上
    • ¥15 c程序不知道为什么得不到结果
    • ¥40 复杂的限制性的商函数处理
    • ¥15 程序不包含适用于入口点的静态Main方法
    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解