<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/x.ps1, branch 1.88.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.88.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.88.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2023-12-09T14:46:16+00:00</updated>
<entry>
<title>use `&amp;` instead of start-process in x.ps1</title>
<updated>2023-12-09T14:46:16+00:00</updated>
<author>
<name>jyn</name>
<email>github@jyn.dev</email>
</author>
<published>2023-12-09T14:43:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2cf54e9f99f83e314256808b1e0753779d49e652'/>
<id>urn:sha1:2cf54e9f99f83e314256808b1e0753779d49e652</id>
<content type='text'>
start-process has weird parsing rules and buggy behavior. we've already had to work around them several times, and the workarounds were not complete.
i wonder who could have added it HMMMMMM
```
PS C:\Users\jyn\src\rust&gt; git log --reverse -S Start-Process x.ps1
commit 775c3c0493e9a383a7f1c521b06d36f2e3d0d886
Author: Jynn Nelson &lt;github@jyn.dev&gt;
Date:   Sun Jul 31 14:02:31 2022 -0500

    Add `x.sh` and `x.ps1` shell scripts
```

the latest broken thing is trailing backslashes:
```
$ x.ps1 t .\tests\ui\error-emitter\
```
would be transformed into
```
['t', '.\\tests\\ui\\error-emitter"']
```

rather than trying to hack around that too, abandon start-process altogether and just use `&amp;`.
</content>
</entry>
<entry>
<title>x.ps1: remove the check for Python from Windows Store</title>
<updated>2023-10-23T05:25:48+00:00</updated>
<author>
<name>Sean Cross</name>
<email>sean@xobs.io</email>
</author>
<published>2023-10-23T05:25:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1f9f041c35106c8c0c05f1a0bad6c2c790451f95'/>
<id>urn:sha1:1f9f041c35106c8c0c05f1a0bad6c2c790451f95</id>
<content type='text'>
When installing Python from the Windows Store, a copy of `python.exe` is
installed inder the Microsoft directory in the user's local AppData
directory. Currently, `x.ps1` checks for this file, because by default
running `python.exe` opens a link to the Microsoft Store rather than
running Python.

Once the user installs Python, however, this contains a valid
interpreter. Unfortuantely, `x.ps1` can't tell the difference between a
legitimate Python install and the stub.

Remove the check, as it makes it impossible to use the official version
from Microsoft once it has been installed.

Signed-off-by: Sean Cross &lt;sean@xobs.io&gt;
</content>
</entry>
<entry>
<title>Don't print "x.ps1"</title>
<updated>2023-06-24T19:44:53+00:00</updated>
<author>
<name>jyn</name>
<email>github@jyn.dev</email>
</author>
<published>2023-06-24T18:16:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=664ffa419eb4793d2c6e161d6f098b0104550ca2'/>
<id>urn:sha1:664ffa419eb4793d2c6e161d6f098b0104550ca2</id>
<content type='text'>
This is left over from adding `Get-Command -syntax`; it's not helpful.
</content>
</entry>
<entry>
<title>Give a better error on Windows if python isn't installed</title>
<updated>2023-06-24T19:44:53+00:00</updated>
<author>
<name>jyn</name>
<email>github@jyn.dev</email>
</author>
<published>2023-06-24T18:09:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fa7e965bf0af41ddd5865ee63782d3536263f964'/>
<id>urn:sha1:fa7e965bf0af41ddd5865ee63782d3536263f964</id>
<content type='text'>
Before:

```
PS C:\Users\vboxuser\rust&gt; ./x
x.ps1

PS C:\Users\vboxuser\rust&gt;
```

After:
```
PS C:\Users\vboxuser\rust&gt; ./x
x.ps1

C:\Users\vboxuser\rust\x.ps1 : C:\Users\vboxuser\rust\x.ps1: error: did not find python installed
help: consider installing it from https://www.python.org/downloads/windows/
At line:1 char:1
+ ./x
+ ~~~
    + CategoryInfo          : NotInstalled: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,x.ps1
```

The existing message from the shell script is already decent and I decided not to change it:
```
$ ./x
Python was not found but can be installed from the Microsoft Store: ms-windows-store://pdp/?productid=9NJ46SX7X90P
```
</content>
</entry>
<entry>
<title>Rollup merge of #111151 - ozkanonur:syntax-check-on-bootstrap-scripts, r=Mark-Simulacrum</title>
<updated>2023-05-06T21:32:01+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2023-05-06T21:32:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=60db4487904a1c8ed6a99343c648c0fbda2447b6'/>
<id>urn:sha1:60db4487904a1c8ed6a99343c648c0fbda2447b6</id>
<content type='text'>
check bootstrap scripts syntax

Fails bootstrapping if `x`/`x.ps1` scripts are not valid. Currently, it keeps executing lines until the invalid one.
</content>
</entry>
<entry>
<title>check bootstrap scripts syntax</title>
<updated>2023-05-03T17:32:39+00:00</updated>
<author>
<name>ozkanonur</name>
<email>work@onurozkan.dev</email>
</author>
<published>2023-05-03T17:32:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=eea6202c248f0aa57a7f490f50a7bf21f322a40e'/>
<id>urn:sha1:eea6202c248f0aa57a7f490f50a7bf21f322a40e</id>
<content type='text'>
Signed-off-by: ozkanonur &lt;work@onurozkan.dev&gt;
</content>
</entry>
<entry>
<title>Return error code from x.ps1</title>
<updated>2023-05-03T17:21:36+00:00</updated>
<author>
<name>Chris Denton</name>
<email>chris@chrisdenton.dev</email>
</author>
<published>2023-05-03T15:06:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9ea7142a013eeb857a8922caf2ec485a056e987f'/>
<id>urn:sha1:9ea7142a013eeb857a8922caf2ec485a056e987f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Powershell: Create a `Start-Process` wrapper</title>
<updated>2022-12-28T19:41:42+00:00</updated>
<author>
<name>Chris Denton</name>
<email>christophersdenton@gmail.com</email>
</author>
<published>2022-12-28T19:41:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=96501bdbe491e0232ca74d3a3cc15c26a1716e37'/>
<id>urn:sha1:96501bdbe491e0232ca74d3a3cc15c26a1716e37</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Powershell: Use `WaitForExit` instead of `-Wait`</title>
<updated>2022-12-28T15:41:46+00:00</updated>
<author>
<name>Chris Denton</name>
<email>christophersdenton@gmail.com</email>
</author>
<published>2022-12-28T15:41:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=874cefad9bd636671c87336ad470958c9ad26a43'/>
<id>urn:sha1:874cefad9bd636671c87336ad470958c9ad26a43</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add better python discovery</title>
<updated>2022-10-31T07:33:24+00:00</updated>
<author>
<name>Albert Larsan</name>
<email>74931857+albertlarsan68@users.noreply.github.com</email>
</author>
<published>2022-10-13T08:20:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c83ddaef948e5aadf3e64169dd3ab4268834fbff'/>
<id>urn:sha1:c83ddaef948e5aadf3e64169dd3ab4268834fbff</id>
<content type='text'>
`x.ps1` and `x` will now search for python executables like `python3.9`
and `python3.10.exe`
</content>
</entry>
</feed>
