You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are currently doing (essentially) a series yamf add -n manifest.yaml --force file1 then yamf add -n manifest.yaml --force file2 etc... calls which actually overwrites the manifest.yaml each time (as in, the file will eventually only have file2), which is not intended behavior.
But if we remove the --force, it keeps all the files in the one manifest (good), but doesn't update the manifest if we update (say) file1 (bad). A minimal example follows:
echo"hi">> some.txt
yamf add -n manifest.yaml some.txt
cat manifest.yaml
echo"hello">> some.txt
yamf add -n manifest.yaml some.txt
cat manifest.yaml
# Both invocations of `cat` will be the same
Solutions
Rework how we are doing the loop of paths so we can do something like yamf add -n manifest.yaml --force file1 file2 ...
Fix the yamf code so that --force isn't a full overwrite, or non---force doesn't update anything. Maybe somewhere in the middle? --update?
Something else?
The text was updated successfully, but these errors were encountered:
Advocating for a new yamf add --update file option that would update a manifest files file entry while keeping the other entries intact :D @aidanheerdegen
Advocating for a new yamf add --update file option that would update a manifest files file entry while keeping the other entries intact :D @aidanheerdegen
Background
See
model-config-inputs/.github/workflows/remote-copy.yml
Lines 227 to 239 in ac8eac1
We are currently doing (essentially) a series
yamf add -n manifest.yaml --force file1
thenyamf add -n manifest.yaml --force file2
etc... calls which actually overwrites the manifest.yaml each time (as in, the file will eventually only havefile2
), which is not intended behavior.But if we remove the
--force
, it keeps all the files in the one manifest (good), but doesn't update the manifest if we update (say)file1
(bad). A minimal example follows:Solutions
yamf add -n manifest.yaml --force file1 file2 ...
yamf
code so that--force
isn't a full overwrite, or non---force
doesn't update anything. Maybe somewhere in the middle?--update
?The text was updated successfully, but these errors were encountered: