{"action":"created","issue":{"url":"https://api.github.com/repos/mholt/caddy/issues/986","repository_url":"https://api.github.com/repos/mholt/caddy","labels_url":"https://api.github.com/repos/mholt/caddy/issues/986/labels{/name}","comments_url":"https://api.github.com/repos/mholt/caddy/issues/986/comments","events_url":"https://api.github.com/repos/mholt/caddy/issues/986/events","html_url":"https://github.com/mholt/caddy/issues/986","id":168776897,"number":986,"title":"import directive is broken in version 0.9.0 win10_x64","user":{"login":"vitr","id":2770290,"avatar_url":"https://avatars.githubusercontent.com/u/2770290?v=3","gravatar_id":"","url":"https://api.github.com/users/vitr","html_url":"https://github.com/vitr","followers_url":"https://api.github.com/users/vitr/followers","following_url":"https://api.github.com/users/vitr/following{/other_user}","gists_url":"https://api.github.com/users/vitr/gists{/gist_id}","starred_url":"https://api.github.com/users/vitr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitr/subscriptions","organizations_url":"https://api.github.com/users/vitr/orgs","repos_url":"https://api.github.com/users/vitr/repos","events_url":"https://api.github.com/users/vitr/events{/privacy}","received_events_url":"https://api.github.com/users/vitr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-02T01:01:25Z","updated_at":"2016-08-03T17:10:44Z","closed_at":"2016-08-03T00:50:18Z","body":"I have no issues running the same set of config files on previous version, but it's broken in the new version. See the following details\r\n#### 1. What version of Caddy are you running (`caddy -version`)?\r\nCaddy 0.9.0\r\n\r\n#### 2. What are you trying to do?\r\nI'm trying to upgrade Caddy from v0.8.3 to v0.9.0\r\n\r\n#### 3. What is your entire Caddyfile?\r\n```text\r\nimport /Users/Vit/.valet/Caddy/*\r\n\r\n:80 {\r\n    fastcgi / 127.0.0.1:9000 php {\r\n        index server.php\r\n    }\r\n\r\n    rewrite {\r\n        to /server.php?{query}\r\n    }\r\n}\r\n```\r\n\r\n#### 4. How did you run Caddy (give the full command and describe the execution environment)?\r\ncaddy --conf=\\Users\\Vit\\.valet\\Caddyfile\r\n\r\n#### 5. What did you expect to see?\r\nthis works on version 0.8.3, server runs OK\r\n\r\n#### 6. What did you see instead (give full error messages and/or log)?\r\n```\r\n2016/08/02 10:47:35 \\Users\\Vit\\.valet\\Caddyfile:1 - Parse error: No files matching import pattern /Users/Vit/.valet/Caddy/*\r\n```\r\n\r\n#### 7. How can someone who is starting from scratch reproduce this behavior as minimally as possible?\r\nUse Windows 10 Pro x64, download caddy https://caddyserver.com/download/build?os=windows&arch=amd64&features=\r\ntry to import some file using `import /Users/Vit/.valet/Caddy/*`\r\nthe contents example\r\n```text\r\nhttp://Vit.dev:80 {\r\n    redir https://{host}{uri}\r\n}\r\n\r\nhttps://Vit.dev:443 {\r\n    tls \\Users\\Vit/.valet/Certificates/Vit.dev.crt \\Users\\Vit/.valet/Certificates/Vit.dev.key\r\n\r\n    fastcgi / 127.0.0.1:9000 php {\r\n        index server.php\r\n    }\r\n\r\n    rewrite {\r\n        to /server.php?{query}\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/mholt/caddy/issues/comments/237301867","html_url":"https://github.com/mholt/caddy/issues/986#issuecomment-237301867","issue_url":"https://api.github.com/repos/mholt/caddy/issues/986","id":237301867,"user":{"login":"mholt","id":1128849,"avatar_url":"https://avatars.githubusercontent.com/u/1128849?v=3","gravatar_id":"","url":"https://api.github.com/users/mholt","html_url":"https://github.com/mholt","followers_url":"https://api.github.com/users/mholt/followers","following_url":"https://api.github.com/users/mholt/following{/other_user}","gists_url":"https://api.github.com/users/mholt/gists{/gist_id}","starred_url":"https://api.github.com/users/mholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mholt/subscriptions","organizations_url":"https://api.github.com/users/mholt/orgs","repos_url":"https://api.github.com/users/mholt/repos","events_url":"https://api.github.com/users/mholt/events{/privacy}","received_events_url":"https://api.github.com/users/mholt/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T17:10:44Z","updated_at":"2016-08-03T17:10:44Z","body":"Indeed, we did change how imports are handled (slightly) - import paths are now relative to the file's location. I actually think I like this new behavior better since paths like you had before don't make much sense in Windows IMO, and now sensible paths are enforced. Thanks for your issue!"}}
{"actor":{"display_login":"mholt"}}