Skip to content
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

Provision cwd #2877

Merged
merged 2 commits into from Jan 17, 2023
Merged

Provision cwd #2877

merged 2 commits into from Jan 17, 2023

Conversation

masenf
Copy link
Collaborator

@masenf masenf commented Jan 17, 2023

When executing via the provisioning environment, run tox in working directory of the parent process.

Prior to this change (from tox 4.0.0), the provisioned tox would execute with {tox_root} as the working directory, which breaks when a relative path is passed to -c or --conf and tox is executed in a working directory other than {tox_root}.

Fix #2876

Testing

The included integration test passes with the absolute path and fails with the relative path prior to this change.

Thanks for contribution

Please, make sure you address all the checklists (for details on how see
development documentation)!

  • ran the linter to address style issues (tox -e fix)
  • wrote descriptive pull request text
  • ensured there are test(s) validating the fix
  • added news fragment in docs/changelog folder
  • updated/extended the documentation

using either a relative or absolute path to the conf file
running in a different working directory than the parent process changes the
interpretation of relative paths on the command line passed to the provisoned
tox and must be avoided.

fix tox-dev#2876
@gaborbernat gaborbernat merged commit 2a87375 into tox-dev:main Jan 17, 2023
@masenf masenf deleted the provision-cwd branch January 18, 2023 04:25
descope bot added a commit to descope/django-descope that referenced this pull request Jan 31, 2023
This PR contains the following updates:

| Package | Type | Update | Change | Pending |
|---|---|---|---|---|
| [tox](https://togithub.com/tox-dev/tox)
([changelog](https://tox.wiki/en/latest/changelog.html)) | dev | patch |
`4.3.3` -> `4.3.4` | `4.4.3` (+4) |

---

### Release Notes

<details>
<summary>tox-dev/tox</summary>

### [`v4.3.4`](https://togithub.com/tox-dev/tox/releases/tag/4.3.4)

[Compare Source](https://togithub.com/tox-dev/tox/compare/4.3.3...4.3.4)

#### What's Changed

- Provision cwd by [@&#8203;masenf](https://togithub.com/masenf) in
[tox-dev/tox#2877
- Fix the type annotation for `color` param of `Spinner.finalize()` by
[@&#8203;kurtmckee](https://togithub.com/kurtmckee) in
[tox-dev/tox#2879

**Full Changelog**: tox-dev/tox@4.3.3...4.3.4

</details>

---

### Configuration

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

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

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

---

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

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMDEuMCIsInVwZGF0ZWRJblZlciI6IjM0LjEwMS4wIn0=-->

Co-authored-by: descope[bot] <descope[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

provision with -c relative/tox.ini: could not recognize config file
2 participants