-
Notifications
You must be signed in to change notification settings - Fork 21
Skip Build Unless Installing on IBM i #54
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
Comments
Original comment by Xu Meng (Bitbucket: mengxumx, GitHub: dmabupt). The host operating system is determined by |
Original comment by David Russo (Bitbucket: DavidRusso, GitHub: DavidRusso). Thanks, this will be a nice improvement! I'll try it out when it's released. |
config: Moved the repository to GitHub
Hello @DavidRusso , I have upgraded idb-connector to 1.1.8 which contains the changes. |
This change does not work for AIX. Can you make it for AIX too? |
I'm not sure how it could not work on AIX, since it only references "aix" for which builds to skip. Or do AIX builds put the version in the OS string? |
The build is not skipped on AIX as it should be, and proceeds to fail. |
In our package.json we specify For us process.platform returns "aix" so
For it to skip on AIX we would need to dig into how process.platform is determined or find another work around. For now we can simply state package does not support AIX in readme. I've seen some packages override install script which is probably not a good thing. Example is Appmetrics |
Why does it need to work on AIX in the first place? This requires libdb400, which isn't available on AIX anyway. |
Right it cannot work on AIX. The failure is expected Our
On every other platform will output something like
but on AIX it will actually try to build the project and fail. I guess we should just clearly state in our readme this package is only for IBM i |
PR #57 is created. |
This is holding up React.js support on IBM i, so I consider this a high-priority item (or working to find alternative implementation for default-gateway) |
@ThePrez I'm trying to figure how that could be. Can you link to that issue? |
We could skip the native parts in the .gyp file based on an "os400" condition. That would be pretty clean |
Regarding React: We decided to remove the |
Original report by David Russo (Bitbucket: DavidRusso, GitHub: DavidRusso).
I work on a package that installs on multiple platforms, including IBM i. I've put idb-connector under optionalDependencies in my package.json -- this allows NPM to proceed with installing my package on non-IBM i platforms, where idb-connector obviously does not work. Programming logic in my package then selects the appropriate database connector for the appropriate platform.
This allows me to install on any platform, but I get a lot of unnecessary output and error messages when installing on non-IBM i platforms because NPM goes through the motions of trying to build idb-connector. To see what I mean, try 'npm install profoundjs' on a Windows PC.
I'm wondering if it's possible to set up so that NPM does not try to build/install idb-connector unless installing on IBM i.
Maybe it's just a matter of setting the 'os' key in idb-connector's package.json?
https://docs.npmjs.com/files/package.json#os
The text was updated successfully, but these errors were encountered: