ottomatica/slim

Error: ENOENT: no such file or directory ~/alpine3.8-runc-ansible/info.yml

pulberg opened this issue · 3 comments

So i'm testing out slim and i'm not sure about an error i'm getting. I can get the build to work correctly -

-rw-r--r--  1 pulberg  RJF\Domain Users  24856576 Jun 18 13:04 /Users/pulberg/.slim/registry/alpine3.8-simple/slim.iso
success!

If I then try slim images I get this -

slim images
Error: ENOENT: no such file or directory, open '/Users/pulberg/.slim/registry/alpine3.8-runc-ansible/info.yml'
    at Object.openSync (fs.js:447:3)
    at Object.readFileSync (fs.js:349:35)
    at Images.info (/Users/pulberg/slim/lib/images.js:41:39)
    at /Users/pulberg/slim/lib/images.js:16:35
    at Array.map (<anonymous>)
    at Images.list (/Users/pulberg/slim/lib/images.js:15:59)
    at Object.exports.handler (/Users/pulberg/slim/lib/commands/images.js:11:30)
    at Object.runCommand (/Users/pulberg/slim/node_modules/yargs/lib/command.js:242:26)
    at Object.parseArgs [as _parseArgs] (/Users/pulberg/slim/node_modules/yargs/yargs.js:1078:30)
    at Object.get [as argv] (/Users/pulberg/slim/node_modules/yargs/yargs.js:1012:21) {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: '/Users/pulberg/.slim/registry/alpine3.8-runc-ansible/info.yml'
}

Even if i add the info.yml file, I then get this -

slim images
Error: ENOENT: no such file or directory, stat '/Users/pulberg/.slim/registry/alpine3.8-runc-ansible/slim.iso'
    at Object.statSync (fs.js:856:3)
    at Object.statSync (/Users/pulberg/slim/node_modules/graceful-fs/polyfills.js:295:24)
    at VirtualBox.size (/Users/pulberg/slim/lib/providers/virtualbox.js:124:19)
    at /Users/pulberg/slim/lib/images.js:21:47
    at processTicksAndRejections (internal/process/task_queues.js:89:5)
    at async Promise.all (index 0)
    at async Images.list (/Users/pulberg/slim/lib/images.js:15:16)
    at async Object.exports.handler (/Users/pulberg/slim/lib/commands/images.js:11:17) {
  errno: -2,
  syscall: 'stat',
  code: 'ENOENT',
  path: '/Users/pulberg/.slim/registry/alpine3.8-runc-ansible/slim.iso'
}

And, sure enough, no .iso in that path -

pulberg ~ alpine3.8-runc-ansible
 ➜ ls
.rw-r--r--  pulberg  RJF\Domain Users  92 B  Tue Jun 18 13:06:58 2019    info.yml

So i'm not sure what needs to be done here or why it's asking for something that doesn't exist.

Thanks,

Phillip

@pulberg This might be related to this issue: #17
We just pushed an update in this PR:
#36

Maybe try the latest code?

Thanks, I'll test the latest.

Working great now, thanks!