如果在Windows + otto中听到了“客户端不拥有所需的权限”这样的叱责

HashiCorp公司的otto故事。

有时会因将本地文件指定为依赖而发生错误。

一个例子发生了

环境

    • Windows 10

 

    • Cygwin

 

    otto 0.1.1

目录结构

project
├── Appfile [*1]
└── mongodb
    ├── .ottoid
    └── Appfile [*2]

文件内容

*1 /项目/应用文件

application {
  name = "example"
  type = "ruby"

  dependency { source = "./mongodb" }
}

customization "ruby" {
  ruby_version = "2.0"
}

*/项目/数据库/应用文件

application {
    name = "mongodb"
    type = "docker-external"
}

customization "docker" {
    image = "mongo:3.0"
    run_args = "-p 27017:27017"
}

编译结果

$ otto compile
==> Loading Appfile...
==> Fetching all Appfile dependencies...
    Fetching dependency: file://C:/Users/hoge/project/mongodb
    Error compiling Appfile: error downloading module 'file://C:/Users/hoge/project/mongodb': symlink C:\Users\hoge\project\mongodb C:\Users\hoge\project\.otto\appfile\deps\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx: A required privilege is not held by the client.

解决方案 (jiě jué àn)

使用Shift+Ctrl等组合键,以管理员权限运行。

或者,您可以通过以下方法更改设置。

How to fix
5.png

通过这个方法,可以避免错误的发生。

请自行承担与设定更改相关的责任。

广告
将在 10 秒后关闭
bannerAds