Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mengdaming committed Apr 23, 2024
1 parent 75039e5 commit 3162153
Show file tree
Hide file tree
Showing 19 changed files with 245 additions and 225 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
- name: Build
working-directory: go
run: go build -v ./...
Expand Down
19 changes: 11 additions & 8 deletions cpp/GETTING_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,14 +377,17 @@ Refer to [Using TCR](#using-tcr) section for additional details about TCR and av

Here are the main shortcuts available once TCR utility is running:

| Shortcut | Description |
|-----------|-----------------------------------------------|
| `?` | List available options |
| `d` / `D` | Enter driver role (from main menu) |
| `n` / `N` | Enter navigator role (from main menu) |
| `q` / `Q` | Quit current role - Quit TCR (from main menu) |
| `t` / `T` | Query timer status (from driver role only) |
| `p` / `P` | Toggle on/off git auto-push (from main menu) |
| Shortcut | Description |
|-----------|----------------------------------------------|
| `o` / `O` | Open in browser (with `web` subcommand only) |
| `d` / `D` | Enter driver role |
| `n` / `N` | Enter navigator role |
| `t` / `T` | Query timer status |
| `p` / `P` | Toggle on/off git auto-push |
| `l` / `L` | Pull from remote |
| `s` / `S` | Push to remote |
| `q` / `Q` | Quit current role / Quit TCR |
| `?` | List available options |

### Additional Details

Expand Down
20 changes: 12 additions & 8 deletions cpp/cmake/CPM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if(NOT COMMAND cpm_message)
endfunction()
endif()

set(CURRENT_CPM_VERSION 0.38.6)
set(CURRENT_CPM_VERSION 0.39.0)

get_filename_component(CPM_CURRENT_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}" REALPATH)
if(CPM_DIRECTORY)
Expand Down Expand Up @@ -99,6 +99,12 @@ macro(cpm_set_policies)
cmake_policy(SET CMP0135 NEW)
set(CMAKE_POLICY_DEFAULT_CMP0135 NEW)
endif()

# treat relative git repository paths as being relative to the parent project's remote
if(POLICY CMP0150)
cmake_policy(SET CMP0150 NEW)
set(CMAKE_POLICY_DEFAULT_CMP0150 NEW)
endif()
endmacro()
cpm_set_policies()

Expand Down Expand Up @@ -294,12 +300,6 @@ function(CPMFindPackage)
return()
endif()

cpm_check_if_package_already_added(${CPM_ARGS_NAME} "${CPM_ARGS_VERSION}")
if(CPM_PACKAGE_ALREADY_ADDED)
cpm_export_variables(${CPM_ARGS_NAME})
return()
endif()

cpm_find_package(${CPM_ARGS_NAME} "${CPM_ARGS_VERSION}" ${CPM_ARGS_FIND_PACKAGE_ARGUMENTS})

if(NOT CPM_PACKAGE_FOUND)
Expand Down Expand Up @@ -534,6 +534,7 @@ function(CPMAddPackage)
GIT_SHALLOW
EXCLUDE_FROM_ALL
SOURCE_SUBDIR
CUSTOM_CACHE_KEY
)

set(multiValueArgs URL OPTIONS DOWNLOAD_COMMAND)
Expand Down Expand Up @@ -704,7 +705,10 @@ function(CPMAddPackage)
string(TOLOWER ${CPM_ARGS_NAME} lower_case_name)
set(origin_parameters ${CPM_ARGS_UNPARSED_ARGUMENTS})
list(SORT origin_parameters)
if(CPM_USE_NAMED_CACHE_DIRECTORIES)
if(CPM_ARGS_CUSTOM_CACHE_KEY)
# Application set a custom unique directory name
set(download_directory ${CPM_SOURCE_CACHE}/${lower_case_name}/${CPM_ARGS_CUSTOM_CACHE_KEY})
elseif(CPM_USE_NAMED_CACHE_DIRECTORIES)
string(SHA1 origin_hash "${origin_parameters};NEW_CACHE_STRUCTURE_TAG")
set(download_directory ${CPM_SOURCE_CACHE}/${lower_case_name}/${origin_hash}/${CPM_ARGS_NAME})
else()
Expand Down
2 changes: 1 addition & 1 deletion cpp/cpp_easy_setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ set CMAKE=cmake.exe
set CTEST=ctest.exe
set CMAKE_GENERATOR_OPTIONS=-G "Visual Studio 16 2019"

set CMAKE_VERSION=3.28.1
set CMAKE_VERSION=3.29.2
set CMAKE_EXPECTED_DIR=cmake-%CMAKE_VERSION%-%OS%-%ARCH%
set CMAKE_EXPECTED_ARCHIVE_FILE=%CMAKE_EXPECTED_DIR%.%ARCHIVE_EXTENSION%
set CMAKE_ARCHIVE_URL="http://github.com/Kitware/CMake/releases/download/v%CMAKE_VERSION%/%CMAKE_EXPECTED_ARCHIVE_FILE%"
Expand Down
2 changes: 1 addition & 1 deletion cpp/cpp_easy_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ esac
base_dir=$(dirname -- "$0")
cd "${base_dir}"

cmake_version="3.28.1"
cmake_version="3.29.2"
cmake_expected_dir="cmake-${cmake_version}-${os}-${arch}"
cmake_expected_archive_file="${cmake_expected_dir}.${archive_extension}"
cmake_archive_url="http://github.com/Kitware/CMake/releases/download/v${cmake_version}/${cmake_expected_archive_file}"
Expand Down
23 changes: 13 additions & 10 deletions go/GETTING_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
- [Go SDK](https://go.dev/dl/)
<details><summary>Go Version</summary>

The kata is configured to run with Go version 1.21 by default.
The kata is configured to run with Go version 1.22 by default.

To use a different version, simply modify the line below in [go.mod](go.mod).

```text
go 1.21
go 1.22
```
</details>
Expand Down Expand Up @@ -335,14 +335,17 @@ Refer to [Using TCR](#using-tcr) section for additional details about TCR and av

Here are the main shortcuts available once TCR utility is running:

| Shortcut | Description |
|-----------|-----------------------------------------------|
| `?` | List available options |
| `d` / `D` | Enter driver role (from main menu) |
| `n` / `N` | Enter navigator role (from main menu) |
| `q` / `Q` | Quit current role - Quit TCR (from main menu) |
| `t` / `T` | Query timer status (from driver role only) |
| `p` / `P` | Toggle on/off git auto-push (from main menu) |
| Shortcut | Description |
|-----------|----------------------------------------------|
| `o` / `O` | Open in browser (with `web` subcommand only) |
| `d` / `D` | Enter driver role |
| `n` / `N` | Enter navigator role |
| `t` / `T` | Query timer status |
| `p` / `P` | Toggle on/off git auto-push |
| `l` / `L` | Pull from remote |
| `s` / `S` | Push to remote |
| `q` / `Q` | Quit current role / Quit TCR |
| `?` | List available options |

### Additional Details

Expand Down
4 changes: 2 additions & 2 deletions go/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/murex/kata/median_list_of_lists

go 1.21
go 1.22

require github.com/stretchr/testify v1.8.4
require github.com/stretchr/testify v1.9.0

require (
github.com/davecgh/go-spew v1.1.1 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
Expand Down
19 changes: 11 additions & 8 deletions java/GETTING_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,14 +274,17 @@ Refer to [Using TCR](#using-tcr) section for additional details about TCR and av

Here are the main shortcuts available once TCR utility is running:

| Shortcut | Description |
|-----------|-----------------------------------------------|
| `?` | List available options |
| `d` / `D` | Enter driver role (from main menu) |
| `n` / `N` | Enter navigator role (from main menu) |
| `q` / `Q` | Quit current role - Quit TCR (from main menu) |
| `t` / `T` | Query timer status (from driver role only) |
| `p` / `P` | Toggle on/off git auto-push (from main menu) |
| Shortcut | Description |
|-----------|----------------------------------------------|
| `o` / `O` | Open in browser (with `web` subcommand only) |
| `d` / `D` | Enter driver role |
| `n` / `N` | Enter navigator role |
| `t` / `T` | Query timer status |
| `p` / `P` | Toggle on/off git auto-push |
| `l` / `L` | Pull from remote |
| `s` / `S` | Push to remote |
| `q` / `Q` | Quit current role / Quit TCR |
| `?` | List available options |

### Additional Details

Expand Down
Binary file modified java/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion java/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
20 changes: 10 additions & 10 deletions java/gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

Expand All @@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto execute

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

Expand Down
6 changes: 3 additions & 3 deletions java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-wrapper-plugin</artifactId>
<version>3.2.0</version>
<version>3.3.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -69,7 +69,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.1</version>
<version>3.13.0</version>
<configuration>
<source>17</source>
<target>17</target>
Expand All @@ -87,7 +87,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<version>3.4.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
21 changes: 12 additions & 9 deletions python/GETTING_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,16 +397,19 @@ Refer to [Using TCR](#using-tcr) section for additional details about TCR and av

Here are the main shortcuts available once TCR utility is running:

| Shortcut | Description |
|-----------|-----------------------------------------------|
| `?` | List available options |
| `d` / `D` | Enter driver role (from main menu) |
| `n` / `N` | Enter navigator role (from main menu) |
| `q` / `Q` | Quit current role - Quit TCR (from main menu) |
| `t` / `T` | Query timer status (from driver role only) |
| `p` / `P` | Toggle on/off git auto-push (from main menu) |
| Shortcut | Description |
|-----------|----------------------------------------------|
| `o` / `O` | Open in browser (with `web` subcommand only) |
| `d` / `D` | Enter driver role |
| `n` / `N` | Enter navigator role |
| `t` / `T` | Query timer status |
| `p` / `P` | Toggle on/off git auto-push |
| `l` / `L` | Pull from remote |
| `s` / `S` | Push to remote |
| `q` / `Q` | Quit current role / Quit TCR |
| `?` | List available options |

### Additional Details

Refer to [TCR - Test && Commit || Revert](../tcr/TCR.md) page
for additional details and explanations about TCR utility.
for additional details and explanations about TCR utility.
4 changes: 2 additions & 2 deletions python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
pytest == 7.0.1; python_version < '3.7'
pytest == 7.4.4; python_version in '3.7'
pytest == 8.0.0; python_version >= '3.8'
pytest == 8.1.1; python_version >= '3.8'
pytest-parametrization == 2022.2.1
mypy == 0.971; python_version < '3.7'
mypy == 1.4.1; python_version in '3.7'
mypy == 1.8.0; python_version >= '3.8'
mypy == 1.9.0; python_version >= '3.8'
yappi == 1.6.0
snakeviz == 2.2.0
2 changes: 1 addition & 1 deletion tcr/tcr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ retrieve_tcr_go_exe() {
version_mismatch=0
if [ ${file_missing} -eq 0 ]; then
current_version=$(retrieve_current_tcr_version "${tcr_bin_path}")
version_mismatch="$( [ "${current_version}" == "${expected_version}" ]; echo $? )"
version_mismatch="$( [ "${current_version}" = "${expected_version}" ]; echo $? )"
fi

# If the file does not exist or if versions do not match, download it from TCR GitHub repository
Expand Down
2 changes: 1 addition & 1 deletion tcr/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tcr 0.29.0
tcr 1.0.0
19 changes: 11 additions & 8 deletions typescript/GETTING_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,17 @@ Refer to [Using TCR](#using-tcr) section for additional details about TCR and av

Here are the main shortcuts available once TCR utility is running:

| Shortcut | Description |
|-----------|-----------------------------------------------|
| `?` | List available options |
| `d` / `D` | Enter driver role (from main menu) |
| `n` / `N` | Enter navigator role (from main menu) |
| `q` / `Q` | Quit current role - Quit TCR (from main menu) |
| `t` / `T` | Query timer status (from driver role only) |
| `p` / `P` | Toggle on/off git auto-push (from main menu) |
| Shortcut | Description |
|-----------|----------------------------------------------|
| `o` / `O` | Open in browser (with `web` subcommand only) |
| `d` / `D` | Enter driver role |
| `n` / `N` | Enter navigator role |
| `t` / `T` | Query timer status |
| `p` / `P` | Toggle on/off git auto-push |
| `l` / `L` | Pull from remote |
| `s` / `S` | Push to remote |
| `q` / `Q` | Quit current role / Quit TCR |
| `?` | List available options |

### Additional Details

Expand Down
Loading

0 comments on commit 3162153

Please sign in to comment.