Why doesn’t Gradle or Maven have a dependency version lock file?

Maven does not have a way of to achieve what you are asking for. Even if you set specific versions for your direct dependencies, which you should, your transitive dependencies can easily be unintentionally changed due to a seemingly unrelated change. For example, adding a dependency on a new library can give you an older … Read more

Why are packages installed rather than just linked to a specific environment?

Conda already does this. However, because it leverages hardlinks, it is easy to overestimate the space really being used, especially if one only looks at the size of a single environment directory at a time. To illustrate the case, let’s use du to inspect the real disk usage. First, if I count each environment directory … Read more

When using Swift Package Manager how can I generate an Xcode project file for development

Update: as mentioned in other answers, you can now generate Xcode project files with this command: swift package generate-xcodeproj Original answer: The Swift Package Manger (SPM) is cross platform, It works on Mac and Linux. The Xcode is Mac OS only, so I don’t think SPM will be hard integrate to work with Xcode. SPM … Read more

How to list all the commands available in package.json?

You can use: npm run to list all commands. (Yarn also features similar functionality on yarn run.) This behavior is made explicit in the help page of npm help run: This runs an arbitrary command from a package’s “scripts” object. If no “command” is provided, it will list the available scripts. To get a quick … Read more

Lua’s package management system?

There is no standard Lua package management system, but you can try out the following: LuaRocks – contains a rather large number of Lua modules distributed as rocks. Once LuaRocks is installed, the installation is simple: luarocks install desired-package. On Linux/Unix/Mac, this will install into /usr/local/{share,lib}/lua/5.1, where the Lua interpreter looks for modules. LuaDist – … Read more

Can I run a private npm repository without replicating the public repository?

I just set this up for my work. Here’s what I did: Setup empty NPM registry: I followed the instructions from this fork of npmjs.org, which adds much improved documentation. Setup Kappa: I used Kappa, a great npm proxy from Paypal. (I’m guessing they have a very similar use case to most people who want … Read more

Is there any way to retrieve a dependency tree from yum?

Per the RHEL5 manual pages: “repoquery is a program for querying information from YUM repositories similarly to rpm queries.” For your specific case of postgis: # repoquery –requires –recursive –resolve postgis postgresql-libs-0:8.1.23-6.el5_8.i386 geos-0:2.2.3-3.el5.i386 glibc-0:2.5-107.el5_9.5.i686 proj-0:4.5.0-3.el5.i386 You can drop the “.i386” and “.i686” off of the package names if your system is 64-bit. The output from … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)