<commit_before>package_path = File.join(Chef::Config[:file_cache_path],go_server_package_name)

remote_file go_server_package_name do
  path package_path
  source go_server_package_url
end

opts = []
opts << '/S'
opts << "/D=#{node['gocd']['server']['work_dir']}"

if defined?(Chef::Provider::Package::Windows)
  package 'Go Server' do
    installer_type :nsis
    source package_path
    options opts.join(" ")
  end
else
  windows_package 'Go Server' do
    installer_type :nsis
    source package_path
    options opts.join(" ")
  end
end<commit_msg>Fix slashes being passed in incorrectly when work_dir is specified<commit_after>package_path = File.join(Chef::Config[:file_cache_path],go_server_package_name)

remote_file go_server_package_name do
  path package_path
  source go_server_package_url
end

opts = []
opts << '/S'
opts << "/D='#{node['gocd']['server']['work_dir'].gsub('/', '\\')}'"

if defined?(Chef::Provider::Package::Windows)
  package 'Go Server' do
    installer_type :nsis
    source package_path
    options opts.join(" ")
  end
else
  windows_package 'Go Server' do
    installer_type :nsis
    source package_path
    options opts.join(" ")
  end
end
{'fraction_non_alphanumeric': 0.12489379779099405, 'fraction_numerical': 0.0, 'mean_word_length': 4.979695431472082, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5265983', 'n_tokens_mistral': 392, 'n_tokens_neox': 393, 'n_words': 90}