-
Notifications
You must be signed in to change notification settings - Fork 172
Improve code maintainability, fix typos, and enhance usability #96
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
base: main
Are you sure you want to change the base?
Conversation
…bugs Fix typographical errors and use system swift
@@ -18,7 +18,7 @@ | |||
BUILD_CONFIGURATION ?= debug | |||
|
|||
# Commonly used locations | |||
SWIFT := "/usr/bin/swift" | |||
SWIFT ?= $(shell command -v swift) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the reason this was hardcoded to explicitly use the swift
wrapper binary that ships with Xcode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you revert this change?
@@ -18,7 +18,7 @@ | |||
BUILD_CONFIGURATION ?= debug | |||
|
|||
# Commonly used locations | |||
SWIFT := "/usr/bin/swift" | |||
SWIFT ?= $(shell command -v swift) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you revert this change?
@@ -39,6 +39,6 @@ if [ ! -z "$2" ] ; then | |||
opts+=("--hosting-base-path" "$2") | |||
fi | |||
|
|||
/usr/bin/swift package ${opts[@]} | |||
"$(command -v swift)" package "${opts[@]}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you revert this change?
This pull request includes several updates to improve code maintainability, fix typos, and enhance usability. The changes include making the
swift
command path dynamic, correcting spelling and grammatical errors in comments, fixing a typo in a test case, and updating a script to dynamically locate theswift
executable.Code maintainability and usability improvements:
Makefile
to dynamically locate theswift
executable usingcommand -v
, replacing the hardcoded path. (Makefile
, MakefileL21-R21)scripts/make-docs.sh
to usecommand -v swift
for determining theswift
executable path, improving portability. (scripts/make-docs.sh
, scripts/make-docs.shL42-R42)Typo and grammar fixes:
Image.swift
, improving clarity. (Sources/Containerization/Image/Image.swift
, Sources/Containerization/Image/Image.swiftL118-R119)Platform.swift
("effictively" → "effectively"). (Sources/ContainerizationOCI/Platform.swift
, Sources/ContainerizationOCI/Platform.swiftL266-R266)RegistryClientTests.swift
("conatinerization" → "containerization"). (Tests/ContainerizationOCITests/RegistryClientTests.swift
, Tests/ContainerizationOCITests/RegistryClientTests.swiftL297-R297)