Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

if ~ is used in user config, export paths break hard #1392

Closed
springmeyer opened this Issue · 1 comment

1 participant

@springmeyer
Owner

while ~/Documents/MapBox exists in the default config (and ~ gets properly replaced with process.env.HOME) if this same value ends up in the user's config, then it will slip through the tilemill path logic and break things in odd ways. I was running tilemill from the command line ./index.js and valid export targets ended up going into a folder called ~ inside my tilemill directory, while empty export targets (from the same export process!) ended up going into the expected HOME directory.

@springmeyer
Owner

to replicate simply:

1) stop tilemill

2) hand edit ~/.tilemill/config.json

3) Add a line like:

  "files": "~/mb",

4) restart tilemill and see:

...
Creating files dir /Users/dane/projects/tilemill/~/mb
Creating export dir /Users/dane/projects/tilemill/~/mb/export
Creating project dir /Users/dane/projects/tilemill/~/mb/project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.