-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fix symlink behavior #343
Fix symlink behavior #343
Conversation
Current behavior, for reference:
|
Change to:
So, with that change EDIT: actually, we're only archiving |
With this diff:
We get:
|
That looks perfect! I can test it over my test directories, however you want to make it available for testing. |
0441071
to
30dbb16
Compare
@TonyB9000 Great, let me know if everything works as expected/desired in your testing. If that goes well, I'll run the zstash tests and make sure it's good to merge. I just committed the changes on this branch. To try the new code out yourself:
|
Most Excellent Ryan! Yes, I will be able to do these and retest! What I needed was the |
@forsyth2 Minor issue? I renamed my old zstash repo so I could "git clone" the latest, but got a pile of "Warning - MITM possible, etc.) It would not "clone". So I went back to my previous zstash repo and did the
So I'm thinking the "fetch" pulled down into an old version. I may wait until Monday to see if I can straighten this out. |
Hmm I get this from
I think it just says installed whatever the last released version was. Nevertheless, that should be 1.4.3, not 1.4.1. I might suggest just doing In any case run
|
@forsyth2 I am having trouble accessing your changed version. I did a fresh git clone, obtained version 1.4.3, and then issued
and the response was
I then did the
But in testing with I am getting the old behavior (links in SRC clobbered with copied files). Moreover, when I issue "git log", the latest entries read
I must be doing it wrong ... When I issue "git branch", all I see is "main". |
@TonyB9000 Oh I see the problem, I left out the all-important step of actually checking out the branch:
|
@forsyth2 That works much better... (I've never checked out a remote branch before). It seems to run correctly, created the (--cache) archive
contains
But (in the /home/bartoletti1/test/zstash/ directory) if I issue
I get
Not sure what to try next. |
It works if you don't use just a wildcard. zstash ls -l gives
|
@forsyth2 How do you "extract everything" (or "ls -l everything")? It crashed when given just * |
@forsyth2 Everything works perfectly. The source directories are untouched, and the extracted archive contains the correct file content in each directory. I just wish |
Using my latest iteration of test script:
Note https://docs.e3sm.org/zstash/_build/html/main/usage.html#extract specifies for
|
@forsyth2 Excellent! I should have used quotes on my wildcard expression. Did not know "empty" = "ALL". Let me know when I can employ a new release version, rather than "pip install" the test branch. BTW I like your practice of putting the issue# in the branch name - I often neglect to create "issues". |
@TonyB9000 That will probably not be for a while, unless we do a patch release before Unified is released in the winter. Is waiting until the next Unified ok or should we do a patch release? In any case, I still need to double check the unit tests on these changes before merging. Then at least it will be on |
8f06327
to
c927973
Compare
@TonyB9000 I've merged this change into |
Awesome! SO I can "git (re)clone" the repo, and have everything up-to date. I just need to remember to "pip install" in any environment where I need it. Thanks! |
Fix symlink behavior. Resolves #341.