Comments (8)
While it may make sense to refactor HaikuPorter in some way, I don't think we should split it into multiple packages at the base level. At most, we might split it up into multiple modules that can be used independently, but I think we should keep it all in one repository.
What do you mean by "all actions related to recipes", anyway? Most of what HaikuPorter does is recipes; what else is there to split out? "Buildmaster" is already somewhat separate (and should be made more so, indeed.)
from haikuporter.
There are two obvious files related to the recipes: RecipeTypes.py
and RecipeAttributes.py
, but some functions are implemented in other files, for example checking if recipe is broken for given port is placed in Port.py
. Checking, validating, parsing recipes could be placed in one module. It could simplify code base. Keeping it in separate repository can be good chance to make some cleanup and be a way to force people to not create circular dependencies across the files.
In theory one could use recipe package to create a program which will generate proper recipe based on given json input file or something like that.
From my perspective HaikuPorter
is doing a lot of stuff - parsing and validating recipes, applying patched, prepares scriplets, communicates with the repository, building ports themselves, etc.
from haikuporter.
Splitting things into multiple repositories won't stop people from making circular dependencies necessarily, since only Haiku will really using these modules in the end.
Yes, HaikuPorter does a lot of stuff, and in some ways it could stand to be better modularized. But I really don't think splitting things into multiple repositories is the way to go, at all.
from haikuporter.
from haikuporter.
Can't we just make the api stable, and keep them as separate python modules in the same repo? It is indeed pretty difficult to work with Haiku packages and package solving without the "real package kit and haikuporter as a whole"
It's one of the reasons I started https://gitlab.com/kallisti5/hpkg-rs (which yeah... i need to dedicate more time to finishing)
from haikuporter.
@waddlesplash
I totally agree with that splitting things into the chunks won't people stop from doing circular dependencies.
@pulkomandy
I would rather propose making cleanup first. I'm fully aware that extracting tools into separate repositories is a very hard work.
@kallisti5
Stable API is a priority! I can start with making some cleanup and starting with solving those circular problems.
Guys, what do you think about making API more stable with proper housework done such cleanup?
from haikuporter.
I don't know what it means to have a "stable API" here. HaikuPorter is a tool for internal use, there isn't much here that is worth "stabilizing" an API for.
from haikuporter.
I'm closing this issue since there are not a lot to do and decision was made - this project won't be divided into separate repositories.
from haikuporter.
Related Issues (20)
- Unable to build source packages after 5cecf6a0 HOT 7
- Using fixCMake doesn't work as expected. HOT 1
- Warning: POLICY ERROR: no matching self provides for "libart_lgpl_devel"
- Explicitly state which dependency could not be satisfied (or why) HOT 4
- buildmaster needs to leverage object storage HOT 23
- Use python packaging.Version to handle versioning inside HaikuPorter instead of custom solution HOT 7
- Changes committed to the master without PR HOT 1
- Cannot clone repository properly on MacOS HOT 16
- Using multiple underscores in recipe name/port name doesn't work for secondary architecture (32bit) HOT 3
- [enhancement] Add RSS/Atom feed for failed builds (skipped ones too?).
- Block builds from creating/deleting users/groups HOT 6
- pip3 install no longer adds executable to path HOT 6
- Reintroduce the lib:libstdc++ dependency in haikuporter
- can only concatenate str on --why
- Haikuporter makes too many assumptions about directories existing HOT 2
- When the PATCH function fails, haikuporter resets to ORIGIN, removing patchset commits
- Draft new tagged release? HOT 2
- Write appendix to the coding guidelines for Python development
- Create CONTRIBUTION document
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 haikuporter.