Skip to content

Commit

Permalink
Replace leftover words redis with kafka
Browse files Browse the repository at this point in the history
  • Loading branch information
andy1li committed Sep 17, 2024
1 parent b754498 commit 2945b7e
Show file tree
Hide file tree
Showing 26 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion compiled_starters/go/.codecrafters/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

set -e # Exit on failure

go build -o /tmp/codecrafters-build-redis-go app/*.go
go build -o /tmp/codecrafters-build-kafka-go app/*.go
2 changes: 1 addition & 1 deletion compiled_starters/go/.codecrafters/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

set -e # Exit on failure

exec /tmp/codecrafters-build-redis-go "$@"
exec /tmp/codecrafters-build-kafka-go "$@"
2 changes: 1 addition & 1 deletion compiled_starters/go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
//
// DON'T EDIT THIS!

module github.com/codecrafters-io/redis-starter-go
module github.com/codecrafters-io/kafka-starter-go

go 1.22
4 changes: 2 additions & 2 deletions compiled_starters/go/your_program.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ set -e # Exit early if any commands fail
# - Edit .codecrafters/compile.sh to change how your program compiles remotely
(
cd "$(dirname "$0")" # Ensure compile steps are run within the repository directory
go build -o /tmp/codecrafters-build-redis-go app/*.go
go build -o /tmp/codecrafters-build-kafka-go app/*.go
)

# Copied from .codecrafters/run.sh
#
# - Edit this to change how your program runs locally
# - Edit .codecrafters/run.sh to change how your program runs remotely
exec /tmp/codecrafters-build-redis-go "$@"
exec /tmp/codecrafters-build-kafka-go "$@"
2 changes: 1 addition & 1 deletion compiled_starters/rust/.codecrafters/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

set -e # Exit on failure

cargo build --release --target-dir=/tmp/codecrafters-redis-target --manifest-path Cargo.toml
cargo build --release --target-dir=/tmp/codecrafters-kafka-target --manifest-path Cargo.toml
2 changes: 1 addition & 1 deletion compiled_starters/rust/.codecrafters/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

set -e # Exit on failure

exec /tmp/codecrafters-redis-target/release/redis-starter-rust "$@"
exec /tmp/codecrafters-kafka-target/release/kafka-starter-rust "$@"
2 changes: 1 addition & 1 deletion compiled_starters/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion compiled_starters/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# DON'T EDIT THIS!
[package]
name = "redis-starter-rust"
name = "kafka-starter-rust"
version = "0.1.0"
authors = ["Codecrafters <hello@codecrafters.io>"]
edition = "2021"
Expand Down
4 changes: 2 additions & 2 deletions compiled_starters/rust/your_program.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ set -e # Exit early if any commands fail
# - Edit .codecrafters/compile.sh to change how your program compiles remotely
(
cd "$(dirname "$0")" # Ensure compile steps are run within the repository directory
cargo build --release --target-dir=/tmp/codecrafters-redis-target --manifest-path Cargo.toml
cargo build --release --target-dir=/tmp/codecrafters-kafka-target --manifest-path Cargo.toml
)

# Copied from .codecrafters/run.sh
#
# - Edit this to change how your program runs locally
# - Edit .codecrafters/run.sh to change how your program runs remotely
exec /tmp/codecrafters-redis-target/release/redis-starter-rust "$@"
exec /tmp/codecrafters-kafka-target/release/kafka-starter-rust "$@"
4 changes: 2 additions & 2 deletions dockerfiles/rust-1.77.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ WORKDIR /app
# .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses
COPY --exclude=.git --exclude=README.md . /app

RUN cargo build --release --target-dir=/tmp/codecrafters-redis-target
RUN cargo build --release --target-dir=/tmp/codecrafters-kafka-target

RUN echo "cd \${CODECRAFTERS_REPOSITORY_DIR} && cargo build --release --target-dir=/tmp/codecrafters-redis-target --manifest-path Cargo.toml" > /codecrafters-precompile.sh
RUN echo "cd \${CODECRAFTERS_REPOSITORY_DIR} && cargo build --release --target-dir=/tmp/codecrafters-kafka-target --manifest-path Cargo.toml" > /codecrafters-precompile.sh
RUN chmod +x /codecrafters-precompile.sh

ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Cargo.toml,Cargo.lock"
2 changes: 1 addition & 1 deletion solutions/go/01-vi6/code/.codecrafters/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

set -e # Exit on failure

go build -o /tmp/codecrafters-build-redis-go app/*.go
go build -o /tmp/codecrafters-build-kafka-go app/*.go
2 changes: 1 addition & 1 deletion solutions/go/01-vi6/code/.codecrafters/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

set -e # Exit on failure

exec /tmp/codecrafters-build-redis-go "$@"
exec /tmp/codecrafters-build-kafka-go "$@"
2 changes: 1 addition & 1 deletion solutions/go/01-vi6/code/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
//
// DON'T EDIT THIS!

module github.com/codecrafters-io/redis-starter-go
module github.com/codecrafters-io/kafka-starter-go

go 1.22
4 changes: 2 additions & 2 deletions solutions/go/01-vi6/code/your_program.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ set -e # Exit early if any commands fail
# - Edit .codecrafters/compile.sh to change how your program compiles remotely
(
cd "$(dirname "$0")" # Ensure compile steps are run within the repository directory
go build -o /tmp/codecrafters-build-redis-go app/*.go
go build -o /tmp/codecrafters-build-kafka-go app/*.go
)

# Copied from .codecrafters/run.sh
#
# - Edit this to change how your program runs locally
# - Edit .codecrafters/run.sh to change how your program runs remotely
exec /tmp/codecrafters-build-redis-go "$@"
exec /tmp/codecrafters-build-kafka-go "$@"
2 changes: 1 addition & 1 deletion solutions/rust/01-vi6/code/.codecrafters/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

set -e # Exit on failure

cargo build --release --target-dir=/tmp/codecrafters-redis-target --manifest-path Cargo.toml
cargo build --release --target-dir=/tmp/codecrafters-kafka-target --manifest-path Cargo.toml
2 changes: 1 addition & 1 deletion solutions/rust/01-vi6/code/.codecrafters/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

set -e # Exit on failure

exec /tmp/codecrafters-redis-target/release/redis-starter-rust "$@"
exec /tmp/codecrafters-kafka-target/release/kafka-starter-rust "$@"
2 changes: 1 addition & 1 deletion solutions/rust/01-vi6/code/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion solutions/rust/01-vi6/code/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# DON'T EDIT THIS!
[package]
name = "redis-starter-rust"
name = "kafka-starter-rust"
version = "0.1.0"
authors = ["Codecrafters <hello@codecrafters.io>"]
edition = "2021"
Expand Down
4 changes: 2 additions & 2 deletions solutions/rust/01-vi6/code/your_program.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ set -e # Exit early if any commands fail
# - Edit .codecrafters/compile.sh to change how your program compiles remotely
(
cd "$(dirname "$0")" # Ensure compile steps are run within the repository directory
cargo build --release --target-dir=/tmp/codecrafters-redis-target --manifest-path Cargo.toml
cargo build --release --target-dir=/tmp/codecrafters-kafka-target --manifest-path Cargo.toml
)

# Copied from .codecrafters/run.sh
#
# - Edit this to change how your program runs locally
# - Edit .codecrafters/run.sh to change how your program runs remotely
exec /tmp/codecrafters-redis-target/release/redis-starter-rust "$@"
exec /tmp/codecrafters-kafka-target/release/kafka-starter-rust "$@"
2 changes: 1 addition & 1 deletion starter_templates/go/code/.codecrafters/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

set -e # Exit on failure

go build -o /tmp/codecrafters-build-redis-go app/*.go
go build -o /tmp/codecrafters-build-kafka-go app/*.go
2 changes: 1 addition & 1 deletion starter_templates/go/code/.codecrafters/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

set -e # Exit on failure

exec /tmp/codecrafters-build-redis-go "$@"
exec /tmp/codecrafters-build-kafka-go "$@"
2 changes: 1 addition & 1 deletion starter_templates/go/code/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
//
// DON'T EDIT THIS!

module github.com/codecrafters-io/redis-starter-go
module github.com/codecrafters-io/kafka-starter-go

go 1.22
2 changes: 1 addition & 1 deletion starter_templates/rust/code/.codecrafters/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

set -e # Exit on failure

cargo build --release --target-dir=/tmp/codecrafters-redis-target --manifest-path Cargo.toml
cargo build --release --target-dir=/tmp/codecrafters-kafka-target --manifest-path Cargo.toml
2 changes: 1 addition & 1 deletion starter_templates/rust/code/.codecrafters/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

set -e # Exit on failure

exec /tmp/codecrafters-redis-target/release/redis-starter-rust "$@"
exec /tmp/codecrafters-kafka-target/release/kafka-starter-rust "$@"
2 changes: 1 addition & 1 deletion starter_templates/rust/code/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion starter_templates/rust/code/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# DON'T EDIT THIS!
[package]
name = "redis-starter-rust"
name = "kafka-starter-rust"
version = "0.1.0"
authors = ["Codecrafters <hello@codecrafters.io>"]
edition = "2021"
Expand Down

0 comments on commit 2945b7e

Please sign in to comment.