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

Add possibility to run executables from dependency packages #976

Merged
merged 5 commits into from
Jan 18, 2022

Conversation

bobeff
Copy link
Contributor

@bobeff bobeff commented Dec 23, 2021

Nimble's run command is extended to be able to run executables not only from the current package but also from some of its dependencies. The package from which we want to run an executable is specified with a newly added to Nimble --package command-line option. There are two cases:

  • For installed in the Nimble cache packages the build step is skipped and the installed package binary is being run.

  • For develop mode packages first the package's binary is being built with provided compilation flags and the package is being run.

Nimble's run command is extended to be able to run executables not only
from the current package but also from some of its dependencies. The
package from which we want to run an executable is specified with a
newly added to Nimble `--package` command-line option. There are two
cases:

 - For installed in the Nimble cache packages the build step is skipped
   and the installed package binary is being run.

 - For develop mode packages first the package's binary is being built
   with provided compilation flags and the package is being run.
@bobeff bobeff force-pushed the feature/run-package-executable branch from 9d31441 to eeb1a4a Compare December 25, 2021 16:30
bobeff and others added 3 commits January 5, 2022 20:11
The new test packages for the "run dependency" feature were required Nim
version 1.7.1 but the one used by the CI is 1.5.1. Now the version is
changed for CI tests to pass.
The name of the executable file on Windows must end with ".exe".
@Araq Araq merged commit 279b8e1 into nim-lang:master Jan 18, 2022
@bobeff bobeff deleted the feature/run-package-executable branch July 30, 2023 21:59
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.

2 participants