Comments (4)
I think it could look in a few different folders for a build directory (we did that with danger-swift for example)
I'd consider it an issue, they probably hardcode those build folders so can just make a list and look there?
from packageconfig.
This wouldn’t work in case PackageConfig is included as a dependency in the Package file. So would you recommend to install PackageConfig globally using mint, for example?
from packageconfig.
On the same note, what I would expect from most of the people are the below steps:
- Import PackageConfig as a dependency of their executable
- Build the executable on top of that (and somewhere try to call
getPackageConfig()
) - Take the executable binary and move it to a different folder (ex:
/usr/local/
) - When launching the executable, that would crash because the lib couldn't be found.
from packageconfig.
@dalu93 think i have an idea on how to make it work almost as you specified.
I think modifying these methods to accept a list of path to search for dynamic libraries at run would suffice.
So that a library user would define search path for a dynamic library in the config as follows.
#if canImport(ExampleConfig)
import ExampleConfig
ExampleConfig(value: "example value").write(searchPaths: ["/usr/local/", ".build/debug", ])
#endif
Would try to implement when i have time. This would allow PackageConfig to also be installed system wide.
from packageconfig.
Related Issues (8)
- Consider what it would look like to allow tools to provide types to the config HOT 1
- Compiling Package.swift fails with PackageConfig command
- Remove 'Example' target HOT 3
- Warning for encodedOffset
- Fail to run via Mint HOT 2
- Xcode 13 / Swift 5.5 configuration failing HOT 1
- Does not work on linux HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packageconfig.