You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🐞 Windows Installation Instructions parameters don't work #7560
-InstallPath:
Line |
94 | -InstallPath C:\temp
| ~~~~~~~~~~~~
| The term '-InstallPath' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
-DaggerVersion:
Line |
94 | -DaggerVersion 0.11.4
| ~~~~~~~~~~~~~~
| The term '-DaggerVersion' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Hm. I'm okay with allowing install.ps1 to work on non-windows, but it shouldn't be the default. Most Linux users don't (and IMO, shouldn't need to) have powershell installed.
Hm. I'm okay with allowing install.ps1 to work on non-windows, but it shouldn't be the default. Most Linux users don't (and IMO, shouldn't need to) have powershell installed.
Yeah. I agree. I would imagine the defacto would be, A heavy windows user or team, may want portability to non-windows machines and in this case, they will utilise Powershell to be more xplat friendly.
I think its perfectly acceptable to not have the dagger one run on linux.
@levlaz out of curiosity what version of powershell is this?
I was using the latest version of Powershell 7 for Windows. Initially I
was running an older version but you can't even install the Dagger CLI
on a pre 7.0 version.
Perhaps the install instructions need some clarification if this is
the case? Like a sanity check for the version.
I think adding a version check as the first thing that the ps1 script
does though would be a welcome improvement.
@levlaz out of curiosity what version of powershell is this?
I was using the latest version of Powershell 7 for Windows. Initially I was running an older version but you can't even install the Dagger CLI on a pre 7.0 version.
Perhaps the install instructions need some clarification if this is the case? Like a sanity check for the version.
I think adding a version check as the first thing that the ps1 script does though would be a welcome improvement.
it does have a version check right at the top #version 7
I have a fix for this on a PR that was to improve the Powershell install experience a bit more as it looked like the script lost functionality from previous merges somewhere down the line. #7569
we need to update the installation page docs because now the invoking works with Invoke-Expression | Install-Dagger -Interactive as an example. current documentation for install does not actually work with customising the install .
Could lev retest maybe? I am happy to improve it further if we find its still not good for Win10 / and powershell isn't somehow recognising the #Version requirement, I have some ideas around that using the $PSVersion table which is another option.
@pjmagee are you able to PR the updated docs in? I can merge that update as part of our release process so the docs and script are deployed at the same time.
@pjmagee are you able to PR the updated docs in? I can merge that update as part of our release process so the docs and script are deployed at the same time.
Activity
jedevc commentedon Jun 6, 2024
@levlaz out of curiosity what version of powershell is this?
I've had this issue when using a version that's too low. See the first line of the installation instructions:
Perhaps the install instructions need some clarification if this is the case? Like a sanity check for the version.
pjmagee commentedon Jun 6, 2024
The script could be written to actually run on Windows/Linux/Mac since powershell7 is xplat - not sure if that would also help with testing
jedevc commentedon Jun 6, 2024
Hm. I'm okay with allowing
install.ps1to work on non-windows, but it shouldn't be the default. Most Linux users don't (and IMO, shouldn't need to) have powershell installed.pjmagee commentedon Jun 6, 2024
Yeah. I agree. I would imagine the defacto would be, A heavy windows user or team, may want portability to non-windows machines and in this case, they will utilise Powershell to be more xplat friendly.
I think its perfectly acceptable to not have the dagger one run on linux.
wingyplus commentedon Jun 6, 2024
Do we need to check powershell version somehow to make sure it works as expected?
levlaz commentedon Jun 6, 2024
pjmagee commentedon Jun 9, 2024
it does have a version check right at the top
#version 7pjmagee commentedon Jun 9, 2024
I have a fix for this on a PR that was to improve the Powershell install experience a bit more as it looked like the script lost functionality from previous merges somewhere down the line. #7569
levlaz commentedon Jun 12, 2024
- Added interactive install (validates paths + some inputs)
.\install.ps1 changes (#7569)
jedevc commentedon Jun 13, 2024
Oop, this got closed by #7569 - @levlaz does that fix your issue, or do we still need to keep this issue open?
pjmagee commentedon Jun 13, 2024
we need to update the installation page docs because now the invoking works with
Invoke-Expression | Install-Dagger -Interactiveas an example. current documentation for install does not actually work with customising the install .Could lev retest maybe? I am happy to improve it further if we find its still not good for Win10 / and powershell isn't somehow recognising the
#Versionrequirement, I have some ideas around that using the$PSVersiontable which is another option.jedevc commentedon Jun 14, 2024
@pjmagee are you able to PR the updated docs in? I can merge that update as part of our release process so the docs and script are deployed at the same time.
pjmagee commentedon Jun 14, 2024
#7669