Comments (11)
Just sent you a pull request that should fix this.
from ecosystem.
BSON has other problems as well. While panda may be installing this correctly for you, it cannot actually determine the proper build order and the fact it may be built in the proper order is a coincidence.
package BSON { class Bson {
And then in your META you point at BSON::Bson. But both panda and Zef determine the build order by running a regex on the source.
from ecosystem.
I've seen this before but I think I do not understand the implications of this.
I am using classes in packages constructs as I feel that it is just that 'a packagage with a set of modules and classes for some project'.
so therefore I use
package BSON { class Bson {
How do I have to change this or the meta.info? And, more importantly, Can one not use above structures?
It also can become harder for panda when one uses
package X { module Y { class Z {
A regex on the source should always reveal the depending code from use/need/... and build a tree of dependencies from that...
from ecosystem.
Theoretically its a sound practice.
The problem is that package managers need to determine the order to build the modules listed in provides
, and this gets done by grepping the source for use ModuleName
(thats over simplified) and counting the occurances each use ModuleName
. Then it can compare against the count of use OtherModule
. Now, the package manager can know that lib/BSON.pm contains BSON::Bson
(the provides tells us), But lets say you have:
package X { class Y {}; class Z {}; };
First, both X::Y and X::Z would need to be mapped in the provides section. If we are to assume this is the case, then the next problem is panda will count use X::Y; use X::Z
in the same script as 2 counts (and as such the build order may be changed)
from ecosystem.
Thanks for the explanation, still have the following problem while installing from local directory...
> cd BSON
> panda install .
==> Installing BSON from a local directory '.'
==> Fetching BSON
==> Building BSON
Compiling lib/BSON/Exception.pm6 to mbc
Compiling lib/BSON/ObjectId.pm to mbc
Compiling lib/BSON/Regex.pm to mbc
Compiling lib/BSON/Javascript.pm to mbc
Compiling lib/BSON/Binary.pm to mbc
===SORRY!===
When pre-compiling a module, its dependencies must be pre-compiled first.
Please pre-compile /home/marcel/Languages/Perl6/Projects/BSON/.panda-work/1438847789_1/lib/BSON/EDC-Tools.pm6
==> Test report submitted as: http://testers.perl6.org/reports/</html>.html
build stage failed for BSON: Failed building lib/BSON/Binary.pm
in method throw at /home/marcel/Software/lib/perl6/share/perl6/runtime/CORE.setting.moarvm:1
in method install at lib/Panda.pm:128
in method resolve at lib/Panda.pm:218
in sub MAIN at /home/marcel/Software/lib/perl6/bin/panda:20
in block <unit> at /home/marcel/Software/lib/perl6/bin/panda:87
Failure Summary
----------------
.
*build stage failed for BSON: Failed building lib/BSON/Binary.pm
This is about what you've explained. Now how do I proceed to get this go away, Change the code into
something more 'panda comprehensable' or change the META.info
from ecosystem.
Hi,
I think it's actually a bug in the way that the Panda::Builder parses the "use" and "require" lines to get the module build order, specifically it won't find any that have a '-' in their name as is the case with BSON::EDC-Tools - I've successfully built this with such a change. I'll send you a PR that implements that but fixing "panda" might be a better idea.
from ecosystem.
Found it, Looks like it must be the case. I will make an issue at panda
thanks
from ecosystem.
Hi, I just sent a PR to panda to fix this tadzik/panda#197
from ecosystem.
I've seen it, thanks. I've modified the code to load EDCTools as you suggested and it works fine. I will mention this at panda.
from ecosystem.
@tadzik has merged that change into panda so it should all be cool now anyway :)
from ecosystem.
ok, so I can dash around now!
from ecosystem.
Related Issues (20)
- Check for incorrect version strings (including an v at the beginning)
- Testing fails in distributions where provided files are generated in the Build phase
- Testing should be smarter
- Only source-url is checked for source and downloading
- Test script only works on git URIs in source
- Test script fails in a weird way if no distribution name is present
- git: URIs for source-urls work to download source, but then fail test
- Spin off module testing to a specific distribution
- Besides checking source-url, we need to figure out the way to check non-git source-urls
- "No license" passes tests
- Should I submit here and at PAUSE?
- The test script does not understand git URIs
- Modules by deceased community members HOT 4
- Modules with external dependencies could specify a Docker container to test them HOT 2
- DBIish HOT 4
- "Error accessing GitHub API. HTTP Code: 401" HOT 14
- When installing Pod::To::HTML, Raku::Pod::Render ver<3.5.2> tries to install HOT 4
- Create a VSCode dev container for Raku HOT 5
- Some tarballs on REA have 0 bytes
- [File::Temp] Add File::Temp to https://github.com/raku-community-modules HOT 13
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 ecosystem.