Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: CI

on:
push:
branches: [dev, main]
pull_request:
branches: [dev, main]

permissions:
contents: read

env:
GOFLAGS: -buildvcs=false
GOWORK: "off"
GOPROXY: "direct"
GOSUMDB: "off"

jobs:
test:
name: Test + Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: actions/setup-go@v6
with:
go-version: '1.26'
- name: Test with coverage
working-directory: go
run: go test -race -coverprofile=coverage.out -covermode=atomic -count=1 ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: go/coverage.out
flags: unittests
fail_ci_if_error: false

lint:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version: '1.26'
- uses: golangci/golangci-lint-action@v9
with:
version: latest
working-directory: go
args: --timeout=5m --tests=false

sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: actions/setup-go@v6
with:
go-version: '1.26'
- name: Test for coverage
working-directory: go
run: go test -coverprofile=coverage.out -covermode=atomic -count=1 ./...
- name: SonarCloud Scan
uses: SonarSource/sonarqube-scan-action@v6
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.organization=dappcore
-Dsonar.projectKey=dappcore_app
-Dsonar.sources=go
-Dsonar.exclusions=**/vendor/**,**/third_party/**,**/.tmp/**,**/*_test.go
-Dsonar.tests=go
-Dsonar.test.inclusions=**/*_test.go
-Dsonar.go.coverage.reportPaths=go/coverage.out
16 changes: 16 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[submodule "external/go"]
path = external/go
url = https://github.com/dappcore/go.git
branch = dev
[submodule "external/config"]
path = external/config
url = https://github.com/dappcore/config.git
branch = dev
[submodule "external/io"]
path = external/io
url = https://github.com/dappcore/go-io.git
branch = dev
[submodule "external/log"]
path = external/log
url = https://github.com/dappcore/go-log.git
branch = dev
4 changes: 2 additions & 2 deletions .woodpecker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ steps:
GOFLAGS: -buildvcs=false
GOWORK: "off"
commands:
- golangci-lint run --timeout=5m ./...
- cd go && golangci-lint run --timeout=5m ./...

- name: go-test
image: golang:1.26-alpine
Expand All @@ -25,7 +25,7 @@ steps:
CGO_ENABLED: "1"
commands:
- apk add --no-cache git build-base
- go test -race -coverprofile=coverage.out -covermode=atomic -count=1 ./...
- cd go && go test -race -coverprofile=coverage.out -covermode=atomic -count=1 ./...
- name: sonar
image: sonarsource/sonar-scanner-cli:latest
depends_on: [go-test]
Expand Down
34 changes: 34 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,40 @@ Reference: `docs/RFC.md` — **keystone spec**. Every other Core RFC exists to m
6. **Config** — apply template + vars via core/config
7. **Start** — hand the composed window to core/gui + unblock entry action

## Repo Layout

Go module now lives under `go/` and the repo root is cross-language / metadata only:

```
core/app/
├── go/ ← Go module root (dappco.re/go/app)
│ ├── *.go
│ ├── go.mod, go.sum
│ ├── cmd/
│ ├── tests/
│ ├── README.md → ../README.md
│ ├── CLAUDE.md → ../CLAUDE.md
│ ├── AGENTS.md → ../AGENTS.md
│ └── docs → ../docs
├── docs/ ← cross-language docs source
├── README.md ← repo index / overview
├── CLAUDE.md ← this repo guidance
├── AGENTS.md ← repo-level instructions
├── LICENSE/LICENCE
├── .woodpecker.yml
├── sonar-project.properties
└── .gitignore
```

## Go Resolution Modes

This repo is intentionally single-module from `go/` with no `go.work` in use:

| Mode | When | What runs |
|------|------|-----------|
| **Module mode (default)** | Local work from `go/` | `go test`, `go vet`, `go test ./...`, and CLI builds use `go.mod` directly. |
| **Repro/CI mode** | Verification scripts | Use explicit override: `GOWORK=off GOPROXY=direct GOSUMDB=off GOFLAGS=-mod=mod` for stable behavior and strict cache isolation. |

## Dependency boundary

CoreApp is the orchestrator. It does NOT own:
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
<!-- SPDX-License-Identifier: EUPL-1.2 -->

# core/app

> Lethean app installer + workspace manager — pkg discovery, manifest, integrity, runtime

[![CI](https://github.com/dappcore/app/actions/workflows/ci.yml/badge.svg?branch=dev)](https://github.com/dappcore/app/actions/workflows/ci.yml)
[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=dappcore_app&metric=alert_status)](https://sonarcloud.io/dashboard?id=dappcore_app)
[![Coverage](https://codecov.io/gh/dappcore/app/branch/dev/graph/badge.svg)](https://codecov.io/gh/dappcore/app)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=dappcore_app&metric=security_rating)](https://sonarcloud.io/dashboard?id=dappcore_app)
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=dappcore_app&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=dappcore_app)
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=dappcore_app&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=dappcore_app)
[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=dappcore_app&metric=code_smells)](https://sonarcloud.io/dashboard?id=dappcore_app)
[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=dappcore_app&metric=ncloc)](https://sonarcloud.io/dashboard?id=dappcore_app)
[![Go Reference](https://pkg.go.dev/badge/dappco.re/go/app.svg)](https://pkg.go.dev/dappco.re/go/app)
[![License: EUPL-1.2](https://img.shields.io/badge/License-EUPL--1.2-blue.svg)](https://eupl.eu/1.2/en/)


The CoreApp keystone runtime — reads a `.core/view.yaml` manifest, runs the 7-step boot, enforces permissions, composes layout, starts the app.

> "The keystone spec. Every other RFC exists to make this work."
Expand Down
1 change: 1 addition & 0 deletions external/config
Submodule config added at 905216
1 change: 1 addition & 0 deletions external/go
Submodule go added at d661b7
1 change: 1 addition & 0 deletions external/io
Submodule io added at 789653
1 change: 1 addition & 0 deletions external/log
Submodule log added at df0529
12 changes: 12 additions & 0 deletions go.work
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
go 1.26.2

// Workspace mode for development: pulls fresh code from external/ submodules.
// CI uses GOWORK=off to fall back to go/go.mod tags (reproducible).

use (
./go
./external/go
./external/config
./external/io
./external/log
)
1 change: 1 addition & 0 deletions go/CLAUDE.md
1 change: 1 addition & 0 deletions go/README.md
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions go/docs
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ sonar.exclusions=**/vendor/**,**/third_party/**,**/.tmp/**,**/gomodcache/**,**/n
sonar.tests=.
sonar.test.inclusions=**/*_test.go,**/*.test.ts,**/*.test.js,**/*.spec.ts,**/*.spec.js
sonar.test.exclusions=**/vendor/**,**/third_party/**,**/.tmp/**,**/gomodcache/**,**/node_modules/**,**/dist/**,**/build/**
sonar.go.coverage.reportPaths=coverage.out
sonar.go.coverage.reportPaths=go/coverage.out
Loading