-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local transport on Windows creates LinuxFile instead of WindowsFile #189
Comments
Local and remote transports expose different file interfaces. This is because local transport uses LinuxFile with some methods overriden with Ruby's File calls whereas remote transport uses the appropriate file classes from Train::Extras. This causes problems when users are running locally on Windows because some LinuxFile implementations are not appropriate there. There are two potential compat breaks with this change: 1. pw_username is no longer provided for local transport 2. pw_groupname is no longer provided for local transport These are not available for remote transport, so this doesn't seem like it should be a problem for clients.
Local and remote transports expose different file interfaces. This is because local transport uses LinuxFile with some methods overriden with Ruby's File calls whereas remote transport uses the appropriate file classes from Train::Extras. This causes problems when users are running locally on Windows because some LinuxFile implementations are not appropriate there. There are two potential compat breaks with this change: 1. pw_username is no longer provided for local transport 2. pw_groupname is no longer provided for local transport These are not available for remote transport, so this doesn't seem like it should be a problem for clients. Signed-off-by: Ted Wang <ted.wang@ni.com>
Thank you for filing this issue. As with many large open source projects, we have a backlog of bugs and issues of varying user impact. Some issues are perpetually subject to lower priority than others in our backlog. We have reviewed the issue, and we have determined this a very low priority when considered in the context of the entire backlog. We have elected to close it as "Declined" due to competing priorities. We very much appreciate you bringing this to our attention. Thank you! |
InSpec's file resource behaves strangely when running locally on Windows because LinuxFile is used instead of WindowsFile. This causes various methods to fail with error like so:
See Train::Transports::Local::Connection.file
@files[path] ||= File.new(self, path)
Should there be conditional logic to create WindowsFile when running locally on Windows?
The text was updated successfully, but these errors were encountered: