Skip to content

Conversation

samypr100
Copy link
Collaborator

@samypr100 samypr100 commented Oct 9, 2025

Summary

Adds the version for environment variables added in #16040 and #16125. as these were in-flight before documentation versioning was added.

Adds ability to emit a compiler error when added in is missing for improved reporting to the developer.

e.g. example for the ones fixed in this PR

error: missing #[attr_added_in("x.y.z")] on `UV_UPLOAD_HTTP_TIMEOUT`
       note: env vars for an upcoming release should be annotated with `#[attr_added_in("next release")]`
   --> crates\uv-static\src\env_vars.rs:593:15
    |
593 |     pub const UV_UPLOAD_HTTP_TIMEOUT: &'static str = "UV_UPLOAD_HTTP_TIMEOUT";
    |               ^^^^^^^^^^^^^^^^^^^^^^

error: missing #[attr_added_in("x.y.z")] on `UV_WORKING_DIRECTORY`
       note: env vars for an upcoming release should be annotated with `#[attr_added_in("next release")]`
    --> crates\uv-static\src\env_vars.rs:1087:15
     |
1087 |     pub const UV_WORKING_DIRECTORY: &'static str = "UV_WORKING_DIRECTORY";
     |               ^^^^^^^^^^^^^^^^^^^^
error: could not compile `uv-static` (lib) due to 2 previous errors

@samypr100 samypr100 added the documentation Improvements or additions to documentation label Oct 9, 2025
@konstin konstin changed the title chore(🧹): missing added_in on new env vars Missing added_in on new env vars Oct 10, 2025
@zanieb zanieb merged commit d5dd43a into astral-sh:main Oct 10, 2025
100 checks passed
@zanieb zanieb changed the title Missing added_in on new env vars Add missing "added in" to new environment variables in reference Oct 10, 2025
@samypr100 samypr100 deleted the missing_added_in branch October 13, 2025 20:44
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Oct 15, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [astral-sh/uv](https://github.com/astral-sh/uv) | patch | `0.9.1` -> `0.9.2` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>astral-sh/uv (astral-sh/uv)</summary>

### [`v0.9.2`](https://github.com/astral-sh/uv/blob/HEAD/CHANGELOG.md#092)

[Compare Source](astral-sh/uv@0.9.1...0.9.2)

Released on 2025-10-10.

##### Python

- Add CPython 3.9.24.
- Add CPython 3.10.19.
- Add CPython 3.11.14.
- Add CPython 3.12.12.

##### Enhancements

- Avoid inferring check URLs for pyx in `uv publish` ([#&#8203;16234](astral-sh/uv#16234))
- Add `uv tool list --show-python` ([#&#8203;15814](astral-sh/uv#15814))

##### Documentation

- Add missing "added in" to new environment variables in reference ([#&#8203;16217](astral-sh/uv#16217))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNDQuNCIsInVwZGF0ZWRJblZlciI6IjQxLjE0NC40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiXX0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants