Open zmaupin opened 5 years ago
Not a bug. This was a problem with an invalid name in the directory (the emoji).
@zmaupin I'd open it back. Nevermind the emojis, the problem probably stems from poor UTF-8 character handling and there might be proper use cases for UTF-8 path names. :) Cheers
@zmaupin are you seeing this with the released version of DK 4.4?
Downloaded the latest Ubuntu Bionic release from https://downloads.chef.io/chefdk#ubuntu
root@7eff9d503821:~/đ# dpkg -i chefdk_4.4.27-1_amd64.deb
(Reading database ... 54714 files and directories currently installed.)
Preparing to unpack chefdk_4.4.27-1_amd64.deb ...
Unpacking chefdk (4.4.27-1) over (4.3.13-1) ...
chef --version
Setting up chefdk (4.4.27-1) ...
Thank you for installing ChefDK!
You can find some tips on getting started at https://learn.chef.io
root@7eff9d503821:~/đ# chef --version
ChefDK version: 4.4.27
Chef Infra Client version: 15.3.14
Chef InSpec version: ERROR
Test Kitchen version: 2.3.3
Foodcritic version: 16.1.1
Cookstyle version: 5.6.2
This is very interesting that InSpec is the only one having an issue getting its version. Thanks for the report @zmaupin - getting this issue triaged
@tyler-ball but are the other values coming in from shelling out, or from using constants already loaded?
I do not have a repro on my side. That could be environment (I'm running inspec directly trying from a directory with an emoji name and with a PS1 that includes pwd) or ... I dunno. ruby versions? I highly highly doubt that's an issue.
@zmaupin Can you try to update to ChefDK 4.5.0 and see if this still happens on that new release? It has an updated InSpec along with a bunch of other updates.
Same with ChefDK 4.5.0
$ docker run -i -t --workdir /home/đ chef/chefdk /bin/bash
root@9c3026042631:/home/đ# chef --version
ChefDK version: 4.5.0
Chef Infra Client version: 15.4.45
Chef InSpec version: ERROR
Test Kitchen version: 2.3.3
Foodcritic version: 16.1.1
Cookstyle version: 5.9.3
Description
Unable to use inspec in chefdk 4.4.14
ChefDK Version
Platform Version
chefdk docker container:
Replication Case
Startup container. Run
chef --version
Or Runinspec --version
Or With inspec verified in kitchen.yml use:kitchen
with almost any command:Stacktrace
NOTE: CHEFDK BUGS ONLY
This issue tracker is for the code contained within this repo --
chefdk
.