Skip to content

Work toward build system with packages - #509

Merged
marron-at-work merged 1 commit into
BosqueLanguage:mainfrom
marron-at-work:09_01_buildsys
Sep 2, 2026
Merged

Work toward build system with packages#509
marron-at-work merged 1 commit into
BosqueLanguage:mainfrom
marron-at-work:09_01_buildsys

Conversation

@marron-at-work

Copy link
Copy Markdown
Collaborator

Working to support packages and a modular core library (with native).

Updating build and command line in preparation for enabling this.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Package paths are resolved incorrectly, and every package-enabled build currently exits before completion.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Prepares the compiler and native build pipeline for package support and bundled JSON headers.

Changes:

  • Adds package metadata loading and CLI parsing.
  • Integrates JSON resources into native builds.
  • Updates generated test Makefiles.
File summaries
File Description
src/frontend/build_decls.ts Defines package metadata.
src/cmd/workflows.ts Loads packages and parses package arguments.
src/cmd/bosque.ts Adds package sources and JSON runtime copying.
build/resource_copy.js Copies JSON build resources.
build/Makefile Adds the JSON include directory.
test/cpprun/cpprun_nf.ts Updates C++ test Makefile.
test/documentation/docs_nf.ts Updates documentation-test Makefile.
test/stdlib/stdlib_nf.ts Updates standard-library test Makefile.
Review details
  • Files reviewed: 8/8 changed files
  • Comments generated: 3
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/cmd/bosque.ts
Comment on lines +50 to +53
if(packageinfos.length !== 0) {
//TODO: wire this feature in
Status.error("Packages detected, but this feature is not yet implemented!\n");
process.exit(1);
Comment thread src/cmd/workflows.ts
const pp = {
name: packageconfig.name as string,
packagepath: pkgpath,
bosquesrc: packageconfig.bosquesrc,
Comment thread src/cmd/workflows.ts
return packages;
}
catch (ex) {
Status.error(`Failed to load external package!\n`);
@marron-at-work
marron-at-work merged commit 00f4c7b into BosqueLanguage:main Sep 2, 2026
1 check passed
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