Skip to content

fix: #2130 by patching the protect() method so the path of files in subdirectories is properly resolved during write-protection#2131

Merged
johanneskoester merged 3 commits intosnakemake:mainfrom
nigiord:fix-protected-subdir-bug
Feb 28, 2023
Merged

fix: #2130 by patching the protect() method so the path of files in subdirectories is properly resolved during write-protection#2131
johanneskoester merged 3 commits intosnakemake:mainfrom
nigiord:fix-protected-subdir-bug

Conversation

@nigiord
Copy link
Copy Markdown
Contributor

@nigiord nigiord commented Feb 22, 2023

…bdirectories is properly resolved during write-protection

Description

This is a very small change that ensures paths to files in subdirectories are properly resolved during write-protection of directory() outputs.

QC

  • The PR contains a test case for the changes or the changes are already covered by an existing test case.
  • The documentation (docs/) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake).

…les in subdirectories is properly resolved during write-protection
@nigiord nigiord changed the title fix #2130 by patching the protect() method so the path of files in su… fix: #2130 by patching the protect() method so the path of files in su… Feb 22, 2023
@nigiord
Copy link
Copy Markdown
Contributor Author

nigiord commented Feb 23, 2023

Actually it seems that the bug is fixed for files inside subdirs, but not for subdirs inside subdirs... I’ll update the pull request once I found a proper way to fix it for both.

@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@johanneskoester johanneskoester changed the title fix: #2130 by patching the protect() method so the path of files in su… fix: #2130 by patching the protect() method so the path of files in subdirectories is properly resolved during write-protection Feb 28, 2023
Copy link
Copy Markdown
Contributor

@johanneskoester johanneskoester left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

@johanneskoester johanneskoester merged commit 1a754fd into snakemake:main Feb 28, 2023
johanneskoester pushed a commit that referenced this pull request Mar 1, 2023
🤖 I have created a release *beep* *boop*
---


##
[7.24.0](v7.23.1...v7.24.0)
(2023-03-01)


### Features

* limit the number of input/output files in job properties
([#2149](#2149))
([d93f091](d93f091))


### Bug Fixes

* [#2130](#2130) by
patching the protect() method so the path of files in subdirectories is
properly resolved during write-protection
([#2131](#2131))
([1a754fd](1a754fd))
* `sre_constants` import because of deprecation
([#2139](#2139))
([3b326db](3b326db))
* ensure user and group rw permissions for metadata files and source
cache ([#2132](#2132))
([cc51faa](cc51faa))
* is_run error with local, group jobs
([#2133](#2133))
([31bfcd5](31bfcd5))
* require toposort >= 1.10
([#2145](#2145))
([3cb54b8](3cb54b8))


### Documentation

* Update modularization.rst
([#2137](#2137))
([16954c7](16954c7))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants