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

memfs: fix trunc-append #29

Merged
merged 1 commit into from
Feb 5, 2023
Merged

memfs: fix trunc-append #29

merged 1 commit into from
Feb 5, 2023

Conversation

nikandfor
Copy link
Contributor

The position for an open file was set before the truncation. This is not a common case to use O_TRUNC and O_APPEND together, but it's correct and should work.

@mcuadros mcuadros merged commit f5b6b18 into go-git:master Feb 5, 2023
another-rex referenced this pull request in google/osv-scanner Feb 12, 2023
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/go-git/go-billy/v5](https://github.com/go-git/go-billy)
| require | patch | `v5.4.0` -> `v5.4.1` |
| [golang.org/x/exp](https://github.com/golang/exp) | require | digest
| `98cc5a0` -> `a684f29` |
| [golang.org/x/mod](https://github.com/golang/mod) | require | minor
| `v0.7.0` -> `v0.8.0` |
| [golang.org/x/term](https://github.com/golang/term) | require |
minor | `v0.4.0` -> `v0.5.0` |

---

### Release Notes

<details>
<summary>go-git/go-billy</summary>

### [`v5.4.1`](https://github.com/go-git/go-billy/releases/tag/v5.4.1)

[Compare
Source](https://github.com/go-git/go-billy/compare/v5.4.0...v5.4.1)

#### What's Changed

- memfs: fix trunc-append by
[@&#8203;nikandfor](https://github.com/nikandfor) in
[https://github.com/go-git/go-billy/pull/29](https://github.com/go-git/go-billy/pull/29)

**Full Changelog**:
go-git/go-billy@v5.4.0...v5.4.1

</details>

<details>
<summary>golang/mod</summary>

### [`v0.8.0`](https://github.com/golang/mod/compare/v0.7.0...v0.8.0)

[Compare
Source](https://github.com/golang/mod/compare/v0.7.0...v0.8.0)

</details>

<details>
<summary>golang/term</summary>

### [`v0.5.0`](https://github.com/golang/term/compare/v0.4.0...v0.5.0)

[Compare
Source](https://github.com/golang/term/compare/v0.4.0...v0.5.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 6am on monday" in timezone
Australia/Sydney, Automerge - At any time (no schedule defined).

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

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

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://github.com/renovatebot/renovate/discussions) if
that's undesired.

---

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

---

This PR has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjM0LjEyNS4xIn0=-->
hayleycd referenced this pull request in google/osv-scanner Mar 9, 2023
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/go-git/go-billy/v5](https://github.com/go-git/go-billy)
| require | patch | `v5.4.0` -> `v5.4.1` |
| [golang.org/x/exp](https://github.com/golang/exp) | require | digest
| `98cc5a0` -> `a684f29` |
| [golang.org/x/mod](https://github.com/golang/mod) | require | minor
| `v0.7.0` -> `v0.8.0` |
| [golang.org/x/term](https://github.com/golang/term) | require |
minor | `v0.4.0` -> `v0.5.0` |

---

### Release Notes

<details>
<summary>go-git/go-billy</summary>

### [`v5.4.1`](https://github.com/go-git/go-billy/releases/tag/v5.4.1)

[Compare
Source](https://github.com/go-git/go-billy/compare/v5.4.0...v5.4.1)

#### What's Changed

- memfs: fix trunc-append by
[@&#8203;nikandfor](https://github.com/nikandfor) in
[https://github.com/go-git/go-billy/pull/29](https://github.com/go-git/go-billy/pull/29)

**Full Changelog**:
go-git/go-billy@v5.4.0...v5.4.1

</details>

<details>
<summary>golang/mod</summary>

### [`v0.8.0`](https://github.com/golang/mod/compare/v0.7.0...v0.8.0)

[Compare
Source](https://github.com/golang/mod/compare/v0.7.0...v0.8.0)

</details>

<details>
<summary>golang/term</summary>

### [`v0.5.0`](https://github.com/golang/term/compare/v0.4.0...v0.5.0)

[Compare
Source](https://github.com/golang/term/compare/v0.4.0...v0.5.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 6am on monday" in timezone
Australia/Sydney, Automerge - At any time (no schedule defined).

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

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

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://github.com/renovatebot/renovate/discussions) if
that's undesired.

---

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

---

This PR has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjM0LjEyNS4xIn0=-->
julieqiu referenced this pull request in julieqiu/osv-scanner May 2, 2023
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/go-git/go-billy/v5](https://github.com/go-git/go-billy)
| require | patch | `v5.4.0` -> `v5.4.1` |
| [golang.org/x/exp](https://github.com/golang/exp) | require | digest
| `98cc5a0` -> `a684f29` |
| [golang.org/x/mod](https://github.com/golang/mod) | require | minor
| `v0.7.0` -> `v0.8.0` |
| [golang.org/x/term](https://github.com/golang/term) | require |
minor | `v0.4.0` -> `v0.5.0` |

---

### Release Notes

<details>
<summary>go-git/go-billy</summary>

### [`v5.4.1`](https://github.com/go-git/go-billy/releases/tag/v5.4.1)

[Compare
Source](https://github.com/go-git/go-billy/compare/v5.4.0...v5.4.1)

#### What's Changed

- memfs: fix trunc-append by
[@&#8203;nikandfor](https://github.com/nikandfor) in
[https://github.com/go-git/go-billy/pull/29](https://github.com/go-git/go-billy/pull/29)

**Full Changelog**:
go-git/go-billy@v5.4.0...v5.4.1

</details>

<details>
<summary>golang/mod</summary>

### [`v0.8.0`](https://github.com/golang/mod/compare/v0.7.0...v0.8.0)

[Compare
Source](https://github.com/golang/mod/compare/v0.7.0...v0.8.0)

</details>

<details>
<summary>golang/term</summary>

### [`v0.5.0`](https://github.com/golang/term/compare/v0.4.0...v0.5.0)

[Compare
Source](https://github.com/golang/term/compare/v0.4.0...v0.5.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 6am on monday" in timezone
Australia/Sydney, Automerge - At any time (no schedule defined).

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

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

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://github.com/renovatebot/renovate/discussions) if
that's undesired.

---

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

---

This PR has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjM0LjEyNS4xIn0=-->
julieqiu referenced this pull request in julieqiu/osv-scanner May 2, 2023
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/go-git/go-billy/v5](https://github.com/go-git/go-billy)
| require | patch | `v5.4.0` -> `v5.4.1` |
| [golang.org/x/exp](https://github.com/golang/exp) | require | digest
| `98cc5a0` -> `a684f29` |
| [golang.org/x/mod](https://github.com/golang/mod) | require | minor
| `v0.7.0` -> `v0.8.0` |
| [golang.org/x/term](https://github.com/golang/term) | require |
minor | `v0.4.0` -> `v0.5.0` |

---

### Release Notes

<details>
<summary>go-git/go-billy</summary>

### [`v5.4.1`](https://github.com/go-git/go-billy/releases/tag/v5.4.1)

[Compare
Source](https://github.com/go-git/go-billy/compare/v5.4.0...v5.4.1)

#### What's Changed

- memfs: fix trunc-append by
[@&#8203;nikandfor](https://github.com/nikandfor) in
[https://github.com/go-git/go-billy/pull/29](https://github.com/go-git/go-billy/pull/29)

**Full Changelog**:
go-git/go-billy@v5.4.0...v5.4.1

</details>

<details>
<summary>golang/mod</summary>

### [`v0.8.0`](https://github.com/golang/mod/compare/v0.7.0...v0.8.0)

[Compare
Source](https://github.com/golang/mod/compare/v0.7.0...v0.8.0)

</details>

<details>
<summary>golang/term</summary>

### [`v0.5.0`](https://github.com/golang/term/compare/v0.4.0...v0.5.0)

[Compare
Source](https://github.com/golang/term/compare/v0.4.0...v0.5.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 6am on monday" in timezone
Australia/Sydney, Automerge - At any time (no schedule defined).

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

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

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://github.com/renovatebot/renovate/discussions) if
that's undesired.

---

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

---

This PR has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjM0LjEyNS4xIn0=-->
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.

2 participants