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

Support prefixes with args #48

Closed
wants to merge 2 commits into from

Conversation

IanButterworth
Copy link
Member

Implements @colinxs's suggestion in #41

Fixes #41

@IanButterworth IanButterworth requested a review from a team as a code owner July 17, 2021 17:23
@codecov-commenter
Copy link

codecov-commenter commented Jul 17, 2021

Codecov Report

Merging #48 (30412cd) into master (101f621) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #48   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines            2         2           
=========================================
  Hits             2         2           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 101f621...30412cd. Read the comment docs.

@IanButterworth
Copy link
Member Author

Doesn't seem quite right yet IanButterworth/Example.jl#1

@IanButterworth
Copy link
Member Author

ok, this is working over in IanButterworth/Example.jl#1 with both single prefixes and prefixes with arguments

Is use of eval like this ok?

cc. @giordano

@Octogonapus
Copy link

Bumping this so that julia-actions/julia-buildpkg#16 can eventually get merged.

@IanButterworth
Copy link
Member Author

@SaschaMann 🙏🏻

@@ -51,12 +51,16 @@ runs:
JULIA_PKG_SERVER: ""
- run: |
# The Julia command that will be executed
julia_cmd=( julia --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}), julia_args = ["--check-bounds=${{ inputs.check_bounds }}"]);Pkg.test(; kwargs...)' )
julia_cmd="julia --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV[\"GITHUB_ACTION_PATH\"], \"kwargs.jl\"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}), julia_args = [\"--check-bounds=${{ inputs.check_bounds }}\"]);Pkg.test(; kwargs...)'"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I forgot about this for so long.

My understanding of bash is that for commands like this, parantheses should be used. The if/then block below deals with the main issue we ran into before when using double quotes but there might be other unintentional consequences I'm not aware of. So I'd prefer to stick to the best practice that was recommended back then rather switching to double quotes.

The second suggestion in #41 seems like it should work without going back to double quotes.

@lassepe
Copy link

lassepe commented Oct 27, 2022

May I carefully bump this PR? I could really use this feature in a range of package CIs. Seems like it's only a small change away from being mergeable.

SaschaMann added a commit that referenced this pull request Jan 8, 2023
SaschaMann added a commit that referenced this pull request Jan 8, 2023
Supersedes #48

Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com>
SaschaMann added a commit that referenced this pull request Jan 8, 2023
Supersedes #48

Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com>
@SaschaMann SaschaMann closed this Jan 8, 2023
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.

prefix doesn't support args
5 participants