Skip to content

Commit

Permalink
dev: v43 (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
olix0r authored Feb 21, 2024
1 parent 38c977e commit ff2d1e7
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linkerd2-proxy-api",
"image": "ghcr.io/linkerd/dev:v42",
"image": "ghcr.io/linkerd/dev:v43",
"customizations": {
"vscode": {
"extensions": [
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: linkerd/dev/actions/setup-tools@v42
- uses: linkerd/dev/actions/setup-tools@v43
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: just-dev lint-actions

devcontainer-versions:
runs-on: ubuntu-latest
steps:
- uses: linkerd/dev/actions/setup-tools@v42
- uses: linkerd/dev/actions/setup-tools@v43
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: just-dev check-action-images
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
go:
timeout-minutes: 5
runs-on: ubuntu-latest
container: docker://ghcr.io/linkerd/dev:v42-go
container: docker://ghcr.io/linkerd/dev:v43-go
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: just go-mod-check
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
test:
timeout-minutes: 5
runs-on: ubuntu-latest
container: docker://ghcr.io/linkerd/dev:v42-rust
container: docker://ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: just rs-fetch
Expand All @@ -55,7 +55,7 @@ jobs:
contents: write
timeout-minutes: 5
runs-on: ubuntu-latest
container: docker://ghcr.io/linkerd/dev:v42-rust
container: docker://ghcr.io/linkerd/dev:v43-rust
steps:
- if: needs.meta.outputs.publish
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
Expand All @@ -79,7 +79,7 @@ jobs:
needs: [meta, release]
timeout-minutes: 10
runs-on: ubuntu-latest
container: docker://ghcr.io/linkerd/dev:v42-rust
container: docker://ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- if: '!needs.meta.outputs.publish'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
gen-check:
timeout-minutes: 10
runs-on: ubuntu-latest
container: docker://ghcr.io/linkerd/dev:v42-rust
container: docker://ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: just rs-fetch
Expand All @@ -31,7 +31,7 @@ jobs:
rust-clippy:
timeout-minutes: 10
runs-on: ubuntu-latest
container: docker://ghcr.io/linkerd/dev:v42-rust
container: docker://ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: just rs-fetch
Expand All @@ -40,7 +40,7 @@ jobs:
rust-docs:
timeout-minutes: 10
runs-on: ubuntu-latest
container: docker://ghcr.io/linkerd/dev:v42-rust
container: docker://ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: just rs-fetch
Expand All @@ -49,7 +49,7 @@ jobs:
rust-test:
timeout-minutes: 10
runs-on: ubuntu-latest
container: docker://ghcr.io/linkerd/dev:v42-rust
container: docker://ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: just rs-fetch
Expand Down
2 changes: 2 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ rs-check-fmt:
rs-check *flags:
{{ _cargo }} check --all-targets {{ _features }} {{ flags }}

alias clippy := rs-clippy

# Lint Rust code
rs-clippy *flags:
{{ _cargo }} clippy --all-targets {{ _features }} {{ flags }}
Expand Down
6 changes: 2 additions & 4 deletions src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ impl TryFrom<IpAddress> for std::net::IpAddr {
fn try_from(ip: IpAddress) -> Result<Self, Self::Error> {
use ip_address::Ip;
match ip.ip {
Some(Ip::Ipv4(octets)) => Ok(std::net::Ipv4Addr::from(octets).into()),
Some(Ip::Ipv6(v6)) => std::net::Ipv6Addr::try_from(v6)
.map(Into::into)
.map_err(|_| InvalidIpAddress),
Some(Ip::Ipv4(v4)) => Ok(std::net::IpAddr::V4(v4.into())),
Some(Ip::Ipv6(v6)) => Ok(std::net::IpAddr::V6(v6.into())),
None => Err(InvalidIpAddress),
}
}
Expand Down

0 comments on commit ff2d1e7

Please sign in to comment.