简体   繁体   English

snapcraft 无法从源中提取

[英]snapcraft cannot pull from source

I am trying to build a snap package.我正在尝试构建一个快照 package。 Whenever I run snapcraft I keep getting this error:每当我运行snapcraft时,我都会收到此错误:

Failed to pull source: './local/my-app.zip'.
Please ensure the source path is correct and that it is accessible.
See "snapcraft help sources" for more information.

This is the source from my snapcraft.yaml:这是我的 snapcraft.yaml 的来源:

parts:
  my-part:
    # See 'snapcraft plugins'
    source: "./local/my-app.zip"
    plugin: dump

And this is the result of ls local in the "snap" folder:这是ls local在“snap”文件夹中的结果:

salihu@penguin:~/my-app/dist/my-apps/my-app-snap/snap$ ls local
my-app.zip

You don't need to include the "./" part of the path.您不需要包含路径的“./”部分。 It seems to throw things off.它似乎把东西扔掉了。 Should work with this:应该使用这个:

parts:
  my-part:
    # See 'snapcraft plugins'
    source: local/my-app.zip
    plugin: dump

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM