Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
2f06e19
Generate Socket facts with Coana instead of socket-cli's build-tool s…
jfblaa Nov 13, 2026
65cf8cb
Take what each build loads from Coana's projects
jfblaa Nov 17, 2026
25a8ed0
List the setup wizard's workspaces with Coana
jfblaa Nov 13, 2026
57729f0
Harden how socket-cli runs Coana's facts generation
jfblaa Nov 13, 2026
b4b0542
Call runManifestFacts directly from the JVM manifest commands
jfblaa Nov 15, 2026
e2ad97d
Send a per-tool reachability javaHome to Coana
jfblaa Nov 15, 2026
67c18e2
Ask for the reachability JDK in the JVM setup wizards
jfblaa Nov 15, 2026
f09d14a
Add a per-tool reachability build setting to socket.json
jfblaa Nov 16, 2026
3580372
Send a per-tool reachability build setting to Coana
jfblaa Nov 16, 2026
093e319
Ask whether to build before reachability analysis in the setup wizards
jfblaa Nov 16, 2026
ff72baa
Name --exclude-paths in the remedies Coana reports
jfblaa Nov 17, 2026
8569967
List a skipped build with the options its run would use
jfblaa Nov 17, 2026
f198e8f
Key sidecar entries by the facts file's real path
jfblaa Nov 17, 2026
1a29f7b
Validate reachability settings wherever socket.json can set them
jfblaa Nov 17, 2026
b127cb9
Document the reachability settings in the dynamic SBOM inference guide
jfblaa Nov 17, 2026
fed7da3
Make the setup wizard's reachability answers match what they write
jfblaa Nov 17, 2026
79f18eb
Restore the tests for socketFactsFileName
jfblaa Nov 17, 2026
2e5241e
Correct and trim comments in facts generation and the setup wizard
jfblaa Nov 17, 2026
a8050c5
Say why the walk shares its Coana options, and drop a restating comment
jfblaa Nov 17, 2026
a1c10e5
Show an inherited reachability JDK in manifest setup
jfblaa Nov 17, 2026
262037b
Reject a reachability javaHome for .NET
jfblaa Nov 17, 2026
2271bc6
Name --exclude-paths in auto-manifest remedies only where it exists
jfblaa Nov 17, 2026
bb09d7f
Map build settings to Coana run options in one place
jfblaa Nov 17, 2026
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
67 changes: 0 additions & 67 deletions .config/rollup.dist.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import {
const {
CONSTANTS,
INLINED_SOCKET_CLI_LEGACY_BUILD,
INLINED_SOCKET_CLI_PUBLISHED_BUILD,
INLINED_SOCKET_CLI_SENTRY_BUILD,
INSTRUMENT_WITH_SENTRY,
NODE_MODULES,
Expand Down Expand Up @@ -109,71 +108,6 @@ async function copyInitGradle() {
await fs.copyFile(filepath, destPath)
}

// Copy the build-tool resolution assets (Gradle init script, sbt plugin,
// Maven extension jar, dotnet tool) into dist/manifest-scripts, where run.mts resolves them
// at runtime. The Maven jar is compiled by maven-extension/build-jar.sh. Local
// dev builds may omit it; published builds fail here if it is missing.
async function copyManifestScripts() {
const srcDir = path.join(constants.srcPath, 'commands/manifest/scripts')
const destDir = path.join(constants.distPath, 'manifest-scripts')
await fs.mkdir(path.join(destDir, 'maven-extension'), { recursive: true })
await Promise.all([
fs.copyFile(
path.join(srcDir, 'socket-facts.init.gradle'),
path.join(destDir, 'socket-facts.init.gradle'),
),
fs.copyFile(
path.join(srcDir, 'socket-facts.plugin.scala'),
path.join(destDir, 'socket-facts.plugin.scala'),
),
fs.copyFile(
path.join(srcDir, 'socket-workspaces.init.gradle'),
path.join(destDir, 'socket-workspaces.init.gradle'),
),
fs.copyFile(
path.join(srcDir, 'socket-workspaces.plugin.scala'),
path.join(destDir, 'socket-workspaces.plugin.scala'),
),
])
// The dotnet tool's publish output (scripts/dotnet-tool/build-tool.sh),
// like the Maven jar absent from a fresh checkout.
const dotnetToolDir = path.join(srcDir, 'dotnet-tool', 'publish')
if (existsSync(path.join(dotnetToolDir, 'socket-facts-dotnet.dll'))) {
await fs.cp(dotnetToolDir, path.join(destDir, 'dotnet-tool'), {
recursive: true,
})
} else if (constants.ENV[INLINED_SOCKET_CLI_PUBLISHED_BUILD]) {
throw new Error(
'dotnet manifest tool not found at ' +
dotnetToolDir +
' for a published build. Build it first: pnpm run build:dotnet-tool',
)
}
const jarPath = path.join(
srcDir,
'maven-extension',
'coana-maven-extension.jar',
)
if (existsSync(jarPath)) {
await fs.copyFile(
jarPath,
path.join(destDir, 'maven-extension', 'coana-maven-extension.jar'),
)
} else if (
constants.ENV[INLINED_SOCKET_CLI_PUBLISHED_BUILD]
) {
// Fail closed: a published build without the jar would ship a package whose
// `socket manifest maven` / Maven reachability silently produces an empty
// SBOM. Run `pnpm run build:maven-extension` before `build:dist`. (A local
// dev build tolerates a missing jar; run.mts surfaces a hint at runtime.)
throw new Error(
'Maven manifest extension jar not found at ' +
jarPath +
' for a published build. Build it first: pnpm run build:maven-extension',
)
}
}

async function copyBashCompletion() {
const filepath = path.join(
constants.srcPath,
Expand Down Expand Up @@ -581,7 +515,6 @@ export default async () => {
await Promise.all([
copyCoanaCache(),
copyInitGradle(),
copyManifestScripts(),
copyBashCompletion(),
...(updatePackageMetadata ? [updatePackageJson()] : []),
// Remove dist/vendor.js.map file.
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -757,10 +757,6 @@ jobs:
pnpm exec vitest run --config .config/vitest.config.mts test/unit/scripts/test/apple-signing.test.mts
pnpm exec vitest run --config .config/vitest.terminal.config.mts

- name: Verify .NET SDK
shell: bash
run: dotnet --list-sdks | awk -F. '$1 >= 8 { found=1 } END { exit !found }'

- name: Build prototype native executable
env:
NODE_OPTIONS: ${{ matrix.target == 'darwin-arm64' && '--max-old-space-size=4096' || '' }}
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -366,28 +366,6 @@ jobs:
exit 1
fi

# Compile the Maven manifest extension jar so the dist build bundles it
# into dist/manifest-scripts (the jar is never committed; it ships only in
# the published package). Invoke build-jar.sh directly, NOT via `pnpm run`:
# Socket Firewall wraps the package managers (npm/pnpm/...) it shims, so a
# `pnpm run` would route the Maven wrapper's download through sfw, which
# fails on the non-package fetch. Running bash directly keeps the Maven
# download outside the shimmed process tree. The org action allowlist forbids
# actions/setup-java, so use a JDK pre-installed on the runner image
# (JAVA_HOME_17_X64), falling back to the runner's default `java`.
- name: Build Maven manifest extension jar
run: |
if [ -n "${JAVA_HOME_17_X64:-}" ]; then
export JAVA_HOME="$JAVA_HOME_17_X64"
fi
bash src/commands/manifest/scripts/maven-extension/build-jar.sh

# Same for the dotnet manifest tool: built here, bundled into
# dist/manifest-scripts, never committed. The runner image's preinstalled
# .NET SDK builds it (actions/setup-dotnet is not on the org allowlist).
- name: Build dotnet manifest tool
run: bash src/commands/manifest/scripts/dotnet-tool/build-tool.sh

# PACK ONCE, PUBLISH THOSE BYTES. Each variant is built, packed to a
# tarball, and smoke-tested from that tarball; the three tarballs are
# uploaded as an artifact and the publish job stages those exact files.
Expand Down
Loading
Loading