Open yuichiotsuka opened 2 months ago
Thanks for reaching out @yuichiotsuka !
It sounds like you are configuring asset-paths
which allows you to do things like include an image from your repo in your descriptions.
It looks like we might be able to change the copy_function
for shutil.copytree
to be copyfile
rather than the default of copy2
. The former says it ignores metadata (like the file's permission mode) whereas the latter preserves it.
i.e., change this to be:
shutil.copytree(asset_path, to_asset_path, copy_function=copy)
I don't sense that this would be a high priority for us, so I'd recommend avoid using read-only files in the meantime.
Is this a new bug in dbt-core?
Current Behavior
I have a read-only .png file that is configured in the assets folder. On the first execution of
dbt docs generate
there is no issue. But when succeeding executions ondbt docs generate
returns an error. It seems that it cannot delete the read-only file under /targets/assetsExpected Behavior
I expect the
dbt docs generate
to run with no errors.Steps To Reproduce
dbt docs generate
. I get a permission error.Relevant log output
Environment
Which database adapter are you using with dbt?
snowflake
Additional Context
No response