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

Day 3 cpp #19

Merged
merged 3 commits into from
Dec 4, 2023
Merged

Day 3 cpp #19

merged 3 commits into from
Dec 4, 2023

Conversation

Cryptum169
Copy link
Collaborator

@Cryptum169 Cryptum169 marked this pull request as ready for review December 3, 2023 22:27
runtests.jl Outdated Show resolved Hide resolved
@Moelf
Copy link
Owner

Moelf commented Dec 3, 2023

does that build command assume current path is repo root? you can use this pattern to ensure that command is run from repo root:

julia> pwd()
"/tmp"

julia> cd("/home/akako/") do
           println(pwd())
       end
/home/akako

julia> pwd()
"/tmp"

so basically you can do:

cd(@__DIR__) do
    run(...)
end

@Cryptum169
Copy link
Collaborator Author

so basically you can do:

cd(@__DIR__) do
    run(...)
end

Does this return the directory to the original place after end?

@Moelf
Copy link
Owner

Moelf commented Dec 3, 2023

yes, that's what I was trying to demonstrate in the first code block

https://docs.julialang.org/en/v1/base/file/#Base.Filesystem.cd-Tuple{Function}

@Moelf Moelf merged commit bf0715f into main Dec 4, 2023
1 check passed
@Moelf Moelf deleted the feature/day3-ylks branch December 4, 2023 00:41
RongkunWang pushed a commit to RongkunWang/AoC2023 that referenced this pull request Dec 4, 2023
* Day 3 Ylks solns

* Fix local run test issues

* Improve CI file
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.

Local run test bazel build error
2 participants