Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix custom data path behavior #249

Merged
merged 1 commit into from
Dec 16, 2022
Merged

Fix custom data path behavior #249

merged 1 commit into from
Dec 16, 2022

Conversation

LynxyssCZ
Copy link
Contributor

The custom data path behavior is inconsistent between the updater and library itself.
In the updater, a path relative to CWD hsa to be provided, there is no support for absolute paths.

In the library, the only way of specifying a custom data path is using the very clunky global.geodatadir, while updater can use env variable.

After this update, you can use

  • absolute paths in the updater
  • process.env.GEODATADIR for specifying the custom data dir for library

- `path.join` just joins the path segments, not allowing the use of absolute
  paths
@bluesmoon bluesmoon merged commit 640373b into geoip-lite:main Dec 16, 2022
@codingcn
Copy link

@bluesmoon Please update to npm, thank you very much.

Trallp pushed a commit to privateJets/node-geoip that referenced this pull request Mar 6, 2024
- `path.join` just joins the path segments, not allowing the use of absolute
  paths

After this update, you can use

* absolute paths in the updater
* process.env.GEODATADIR for specifying the custom data dir for library

Co-authored-by: Jakub Jandl <jakub.jandl@emplifi.io>
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.

None yet

3 participants