Title: [3-alpine] shutil.copytree fail to copy a tree with a broken symbolic link · Issue #155 · docker-library/python · GitHub
Open Graph Title: [3-alpine] shutil.copytree fail to copy a tree with a broken symbolic link · Issue #155 · docker-library/python
X Title: [3-alpine] shutil.copytree fail to copy a tree with a broken symbolic link · Issue #155 · docker-library/python
Description: When trying to use pre-commit hock from this repo: https://github.com/pre-commit/pre-commit-hooks pip failed when using the shutil.copytree I've narrowed it to this example, it passed on 2.7-alpine, but fails on 3.5-alpine and 3.6-alpine...
Open Graph Description: When trying to use pre-commit hock from this repo: https://github.com/pre-commit/pre-commit-hooks pip failed when using the shutil.copytree I've narrowed it to this example, it passed on 2.7-alpine...
X Description: When trying to use pre-commit hock from this repo: https://github.com/pre-commit/pre-commit-hooks pip failed when using the shutil.copytree I've narrowed it to this example, it passed on 2.7-al...
Opengraph URL: https://github.com/docker-library/python/issues/155
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[3-alpine] shutil.copytree fail to copy a tree with a broken symbolic link","articleBody":"When trying to use pre-commit hock from this repo:\r\nhttps://github.com/pre-commit/pre-commit-hooks\r\n\r\npip failed when using the shutil.copytree\r\n\r\nI've narrowed it to this example, it passed on 2.7-alpine, but fails on 3.5-alpine and 3.6-alpine\r\n\r\n```\r\nFROM python:3.6-alpine\r\n\r\nRUN apk update\r\nRUN apk add git\r\n\r\nRUN mkdir /bug\r\n\r\nRUN cd /bug \u0026\u0026 ln -s /broken_path/to_nowhere broken\r\nRUN python -c \"import shutil; shutil.copytree('/bug', '/temp', symlinks=True)\"\r\n```\r\n\r\nEDIT:\r\nAfter playing around, I've nailed it to this command failing\r\n```\r\n\u003e\u003e\u003e os.chmod('/bug/broken', 511, follow_symlinks=False)\r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\nOSError: [Errno 95] Not supported: '/bug/broken'\r\n```\r\nshutil was expecting NotImplementedError\r\n\r\nthis seems related \r\nhttps://bugs.python.org/issue17076\r\n","author":{"url":"https://github.com/fruch","@type":"Person","name":"fruch"},"datePublished":"2016-11-06T21:22:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":17},"url":"https://github.com/155/python/issues/155"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8599c03c-b3e8-36a5-a67b-205df4e6a35c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E656:D7C18:8FE213:CD9C67:6A4E40B3 |
| html-safe-nonce | 12150e1720aab63b9dcc3957ea8dc244aa13ddbdf75e5d51ddd8fcde5d4a4935 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjU2OkQ3QzE4OjhGRTIxMzpDRDlDNjc6NkE0RTQwQjMiLCJ2aXNpdG9yX2lkIjoiNzAzODcwMjkxMTY4MTg3MjA1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 116c510a4ccc55aa3996c9756f7300c1fe235cffd22bd34ff6b0dc9fee0f08d1 |
| hovercard-subject-tag | issue:187590144 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/docker-library/python/155/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5821fa9eb1a9cad06e3518502c613a91b30fe8a96b1790922aa6976ed68089ad/docker-library/python/issues/155 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5821fa9eb1a9cad06e3518502c613a91b30fe8a96b1790922aa6976ed68089ad/docker-library/python/issues/155 |
| og:image:alt | When trying to use pre-commit hock from this repo: https://github.com/pre-commit/pre-commit-hooks pip failed when using the shutil.copytree I've narrowed it to this example, it passed on 2.7-alpine... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fruch |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/docker-library/python git https://github.com/docker-library/python.git |
| octolytics-dimension-user_id | 7739233 |
| octolytics-dimension-user_login | docker-library |
| octolytics-dimension-repository_id | 21054928 |
| octolytics-dimension-repository_nwo | docker-library/python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21054928 |
| octolytics-dimension-repository_network_root_nwo | docker-library/python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9fabff9b8b127e686a3ec86f91422e818056ca2c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width