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

Consider allowing workdir to already existing during init #97

Closed
kelly-sovacool opened this issue Oct 18, 2023 · 3 comments · Fixed by #117
Closed

Consider allowing workdir to already existing during init #97

kelly-sovacool opened this issue Oct 18, 2023 · 3 comments · Fixed by #117

Comments

@kelly-sovacool
Copy link
Member

carlisle --runmode=init --workdir=.

Pipeline Dir: /gpfs/gsfs10/users/CCBR_Pipeliner/Pipelines/CARLISLE/.v2.4.1-a/bin
Git Commit/Tag: 57f7d79ff4bd5062ff776134d69346250328d148        v2.4.0-6-g57f7d79
Working Dir: /gpfs/gsfs12/users/sovacoolkl/carlisle_test

  #
  #
  #
    Folder /gpfs/gsfs12/users/sovacoolkl/carlisle_test already exists!

Perhaps instead it could throw a warning if the directory isn't empty?

@slsevilla
Copy link
Contributor

Since we're overwriting the configs etc on init, concern is that you could overwrite a previous runs information, which you don't want to do. We could add an archive step here or something similar to ensure we don't lose the previous configs

@kelly-sovacool
Copy link
Member Author

Gotcha. Maybe we could add a -f/--force flag to allow it to overwrite the dir, otherwise fail?

@slsevilla
Copy link
Contributor

Love that idea! Def works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants