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

Don't remove nested subdirectories #43

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

adamhicks
Copy link
Contributor

An alternative implementation to #42 that maybe solves issues with removing old test output.

The problem can be described with this example:

If we write an output file to fixture/a/b/c/foo.bar, currently we will set the directory modification time of c to the value of the variable ts, this also changes the modification time for every parent of c. Which means that if we also run a test in b we will see a later modification time for the folder b and hence clean that directory, removing c and any output in b.

An alternative solution to this problem (other than the one given in this PR) could be to set the directory modification time for every directory between fixtureDir and the test dir. i.e. in the example above, when writing output to c, set the modification timestamp for b and a as well.

@sebdah sebdah merged commit 18d9c7c into sebdah:master Aug 2, 2024
renovate bot added a commit to jippi/dottie that referenced this pull request Aug 4, 2024
…mod (#68)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/sebdah/goldie/v2](https://togithub.com/sebdah/goldie) |
`v2.5.3` -> `v2.5.5` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fsebdah%2fgoldie%2fv2/v2.5.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fsebdah%2fgoldie%2fv2/v2.5.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fsebdah%2fgoldie%2fv2/v2.5.3/v2.5.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fsebdah%2fgoldie%2fv2/v2.5.3/v2.5.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>sebdah/goldie (github.com/sebdah/goldie/v2)</summary>

### [`v2.5.5`](https://togithub.com/sebdah/goldie/releases/tag/v2.5.5)

[Compare
Source](https://togithub.com/sebdah/goldie/compare/v2.5.4...v2.5.5)

#### What's Changed

- Accept sub sub test name for dir by
[@&#8203;nervo](https://togithub.com/nervo) in
[sebdah/goldie#40

#### New Contributors

- [@&#8203;nervo](https://togithub.com/nervo) made their first
contribution in
[sebdah/goldie#40

**Full Changelog**:
sebdah/goldie@v2.5.4...v2.5.5

### [`v2.5.4`](https://togithub.com/sebdah/goldie/releases/tag/v2.5.4)

[Compare
Source](https://togithub.com/sebdah/goldie/compare/v2.5.3...v2.5.4)

#### What's Changed

- Add customizable equality compare option by
[@&#8203;takashabe](https://togithub.com/takashabe) in
[sebdah/goldie#41
- Don't remove nested subdirectories by
[@&#8203;adamhicks](https://togithub.com/adamhicks) in
[sebdah/goldie#43

#### New Contributors

- [@&#8203;takashabe](https://togithub.com/takashabe) made their first
contribution in
[sebdah/goldie#41
- [@&#8203;adamhicks](https://togithub.com/adamhicks) made their first
contribution in
[sebdah/goldie#43

**Full Changelog**:
sebdah/goldie@v2.5.3...v2.5.4

</details>

---

### Configuration

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

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, 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

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job log](https://developer.mend.io/github/jippi/dottie).

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

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

Successfully merging this pull request may close these issues.

None yet

2 participants