Skip to content

rename zig-cache to .zig-cache #20115

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

Merged
merged 2 commits into from
May 29, 2024
Merged

rename zig-cache to .zig-cache #20115

merged 2 commits into from
May 29, 2024

Conversation

andrewrk
Copy link
Member

closes #20077

andrewrk added 2 commits May 29, 2024 10:09
rather than ignoring specifically "zig-cache" and "zig-out". The latter
is not necessarily the install prefix and should not be special.

The former will be handled by renaming zig-cache to .zig-cache.
@andrewrk andrewrk enabled auto-merge May 29, 2024 19:17
@andrewrk andrewrk merged commit 2008d0f into master May 29, 2024
10 checks passed
@andrewrk andrewrk deleted the zig-cache-rename branch May 29, 2024 19:38
if (is_dir and (mem.eql(u8, entry.name, "zig-cache") or mem.eql(u8, entry.name, "zig-out"))) continue;
if (mem.startsWith(u8, entry.name, ".")) continue;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Am I wrong in thinking it might still make sense to ignore zig-out here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Although zig-out is the default installation prefix, it is not the only one that could possibly exist. It is not supposed to be special.

@andrewrk andrewrk added the release notes This PR should be mentioned in the release notes. label Jun 6, 2024
divinetouch pushed a commit to divinetouch/zigling_practice that referenced this pull request Jun 26, 2024
jesseb34r pushed a commit to jesseb34r/ziglings that referenced this pull request Jul 16, 2024
zig cache directory was updated in ziglang/zig#20115
linusg added a commit to linusg/bdwgc that referenced this pull request Nov 10, 2024
atbraz pushed a commit to atbraz/ziglings that referenced this pull request Feb 10, 2025
atbraz pushed a commit to atbraz/ziglings that referenced this pull request Feb 11, 2025
s-0-a-r added a commit to s-0-a-r/ziglings-exercises that referenced this pull request Feb 22, 2025
* Fix zig_exe location in Build struct

Reflect Zig breaking changes as of ziglang/zig@105db13

* Text improvement

closes #47

* Zig version adjusted.

* Added notes to exercise 94 c_math.

* Added threading exercise

* Fixed unicode literal

* Minor corrections to the "contributing"

* fix exercise 82 output

zig commit bd24e66 changed the floating point formatting implementation so output for exercise 82 no longer matched

* Improved the explanation about passing arguments and added an example.

* Changes for a new Zig version.

* Fixed the renaming of std.os to std.posix

* Added second threading exercise.

* Update exercises/105_threading2.zig

Fixed typo.

* Update .woodpecker/eowyn.yml

fix warning

* Update .woodpecker/eowyn.yml

* Update .woodpecker/eowyn.yml

* added exercise/106_files.zig

* modified build.zig

* 106_files.zig format

* add patch files for 106_files.zig

* 106_files.zig actual test

* 106_files.patches actual

* remove header of patch files of 106

* specify directory on patch file 106

* specify directory on patch file 106

* Pass CI test locally

* 106 & 107

* added format parameter {d}

* fix typo

* Fix breaking zig change to @fieldParentPtr parameters

See ziglang/zig#19470

* Zig version changed

* Update README.md

* Greater gradation of timers built into the threads

* Additional timer in thread start added

* Update .woodpecker/eowyn.yml

* Fixed woodpecker warnings

* fixing little typo on exercise 107_files2.zig

* Switch to new zig dev release 0.13

* Update .woodpecker/eowyn.yaml

Add tag "latest"

* Update .woodpecker/eowyn.yaml

Add pull command

* fix: typo: % instead of @ for a builtin function

* fix: typo: removed extra s

* fix: many grammatical errors

* fix: some grammatical errors

* Fix patches for 106 and 107

* Fix some typos

* Add devcontainer.json

* Nobody wants the long version of finding out if a variable is set.
So switched to the short version with 'orelse'. ;)

* Update exercises/105_threading2.zig

The last word, '"diggits" was misspelled.

* the Earth

* Verbs agree with the head of the noun phrase, not the closest noun

the result...are passed→the result...is passed
the number...vary→the number...varies

* Fixed the changes from reworking std.Progress.
For details: ziglang/zig#20059

* Ignore .zig-cache for new zig versions

zig cache directory was updated in ziglang/zig#20115

* New Zig version

* fixed typo

* English fixes for 107_files2.zig

* English fixes for 106_files.zig

* Calling `split` is deprecated

The `split` function in std mem is depreacted and a `@compileError`, splitSequence,
splitAny, or splitScalar should be used instead.

* Fixes because of a new Zig version, which changes some functions.

* 046: Show usage of `.?` and hint towards new solution.

* Add patch.

* attempt at implementing #113 "Add a way to do one random exercise"

* Rename 'std.rand' to 'std.Random'

* Update .woodpecker/eowyn.yaml

Add pull request

* document -Drandom

* fix build files broken by latest 0.14.0-dev changes to Build.Step.MakeOptions

* fix tests build file broken by addRemoveDirTree now requiring LazyPath

* Fixed error message through a TAB in the comment, see ziglang/zig#20928

* Changed needed zig version.

* Add build parameter to start at a specific exercise

* Clarification in description for ranges in loops.

* Simplified de-referencing for clarification

* Added license to contributing

* Fixes changes in zig build system.

* Insert wrong version number into build file.

* Fixes several changes in std.builtin.zig

* fixed typo: the date in version changes

* Reseted the simplification for de-referencing.

* Update LICENSE

* Corrects the description of the new @typeinfo().@"struct".fields

* New patch file for 82

* Update README.md

Added new todo for core lang

* 108: Add a exercise for a labeled switch

* Add .patch for 108_labeled_switch

* update zig version in build and readme

* update labeled switch to also have a break statement

* downgrade zig version to eowyn version

It is just 2 days behind so all features are already present for the new labeled switch test

* improve explanantions in labeled switch

* update108 .patch due to line change

* Minor improvements.

* Added Dave as initiator of Ziglings.

* Deleted .devcontainer because ist was a test.

* Rephrase instruction for clarity

* Fixed patch from quiz7 after text changes
 #Please enter the commit message for your changes. Lines starting

* reuse fields

* zero

* patch

* Improved maximumNarcissism

* created a new exercise about vectors in zig, gave it number 109

* removed commented solution lines in vectors exercise, added ??? into lines instead

* added patch file for 109_vectors

* line ending format patch attempt

* Fixed formating, created patch file.

* Added SIMD.

* Fixed link to format source code.

* Added missing space after a sentence.

* Minor case-related changes.

* Deleted unnecessary pointer.

* Added patch file.

* Updated credits

* Updated credits

* Update: 108 Labeled switch example to contain default case for exhaustion

Update example text to give clarity on default/exhaustive case.

Reasoning:
The input for the example will not compile if user would want to test this for the logic of a labeled switch. Due the input not being an exhaustive input but rather "any u8 integer" (for the lack of better terminology) we need to use the else branch to indicate that the default case is handled, in this case by just emulating the '4' branch, but this could return an error.InvalidCaseProvided for example.

Signed-off-by: mikkurogue <michael.lindemans@outlook.com>

* Fix typo vaild → valid

* Update: Remove the 4th branch in favour of just making that the else branch

Probably easier to not have an "unused" branch that returns the same as the else branch in the example.

Signed-off-by: mikkurogue <mikkurogue@noreply.codeberg.org>

* Use print alias in exercise 100_for4.zig

* Fix patch after print alias fix in 100_fo4.zig

* Fix a typo: we need do we need to -> we need to

Morning delirium does not help when looking at lots of words

* Update exercises/108_labeled_switch.zig

The sentence was slightly unclear

Signed-off-by: chrboesch <chrboesch@noreply.codeberg.org>

* Update exercises/108_labeled_switch.zig

Fixed an error in the debug statement and made the text a bit more coherent.

Signed-off-by: chrboesch <chrboesch@noreply.codeberg.org>

* Suggesting a third exercise for bit manipulation

* changed the order of the sections to improve flow

* rearranged order of expected output in build.zig

* added newline between toggle and set sections to
make the expected output match

* reset and completed exercise tracking wired in

* fmt

* tracking, skipping and reset all wired in

* cleanup for PR

* cleanup for PR

* cleanup for PR

* cleanup for PR

* format fix

* added patch file for exercise 110

* Skip 74, the compiler corrects this now.

* Added deletion of progress.txt for eowyn

* Added delte_progress additional to the end of eowyn

* Fix repo link

* converted 110 to a quiz (quiz 9)

* moved explanatory content below the broken code in
main so that the exercise functions more like a quiz

* made some simple changes to the wording to reflect
the fact that this is a quiz

* edited the first two paragraphs

* added blank lines between sections to make them
easier to find

* added header for quiz problems

* fixed incorrect bitmask in xor example

* fixed minor spelling and grammar typos

* fixed formatting

* fixed spelling of 'bitmask'

* Shuttle weight fixed

* Output from #60 adapted

* fix: exercises/001_hello.zig (#1)

* fix: exercises/002_std.zig (#2)

* Exercises/003 assignment (#3)

* fix: exercises/003_assignment.zig

- assign new constant

* fix: exercises/003_assignment.zig

- change type of pi to u32

* fix: exercises/003_assignment.zig

- change type of negative_eleven to i8

* doc: add HOWTO_REBASE_ORIGINAL_REPO.md (#4)

---------

Signed-off-by: mikkurogue <michael.lindemans@outlook.com>
Signed-off-by: mikkurogue <mikkurogue@noreply.codeberg.org>
Signed-off-by: chrboesch <chrboesch@noreply.codeberg.org>
Co-authored-by: Alexander Saltanov <asd@mokote.com>
Co-authored-by: Chris Boesch <chrboesch@noreply.codeberg.org>
Co-authored-by: dolichomps <dolichomps@noreply.codeberg.org>
Co-authored-by: Dizzyi <deeralan827@gmail.com>
Co-authored-by: kamidev <1655+kamidev@users.noreply.github.com>
Co-authored-by: susubub <susubub@proton.me>
Co-authored-by: David Hain <d.hain@gmx.at>
Co-authored-by: Rafael Áquila <rafaelaquilaah@hotmail.com>
Co-authored-by: rpm0372 <rpm0372@noreply.codeberg.org>
Co-authored-by: Roman Frołow <rofrol@gmail.com>
Co-authored-by: hippietrail <hippietrail@noreply.codeberg.org>
Co-authored-by: Nico Elbers <nico.b.elbers@gmail.com>
Co-authored-by: Andrew Dunbar <hippytrail@gmail.com>
Co-authored-by: Sebastian <serunmal@gmail.com>
Co-authored-by: Alex McHugh <alexmchughnz@icloud.com>
Co-authored-by: bsubei <6508762+bsubei@users.noreply.github.com>
Co-authored-by: Michael Cooper <mythmon@gmail.com>
Co-authored-by: Seeingu <seeingasu@gmail.com>
Co-authored-by: Nuno Mendes <98030270+nm-remarkable@users.noreply.github.com>
Co-authored-by: factormystic <factormystic@gmail.com>
Co-authored-by: bgthompson <benjamin.btstudios@pm.me>
Co-authored-by: innerviewer <innerviewerr@gmail.com>
Co-authored-by: innerviewer <innerviewer@noreply.codeberg.org>
Co-authored-by: mikkurogue <michael.lindemans@outlook.com>
Co-authored-by: David Pape <zyzzyxdonta@posteo.de>
Co-authored-by: mikkurogue <mikkurogue@noreply.codeberg.org>
Co-authored-by: Zorgatone <zorgatone@gmail.com>
Co-authored-by: Alexander Sisco <36649949+devspeare@users.noreply.github.com>
Co-authored-by: Zendril <kenneth.s.brooks@gmail.com>
Co-authored-by: Alexander Sisco <alexsisco@noreply.codeberg.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes This PR should be mentioned in the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

default local cache directory to .zig-cache instead of zig-cache
3 participants