---
id: change/al-go/2342
type: change
title: "#2342 Fix incremental builds poisoning buildMode-specific artifacts (#2337)"
summary: Fixed incremental builds in AL-Go that were corrupting buildMode-specific artifacts by re-publishing default build mode apps under incorrect artifact names, causing dependent projects to fail with runtime version mismatches.
tier: official
language: en
tags:
  - fix
  - main
system: platform
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:10:11.413Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 93300d797386e3faa2796faf09584b5c9e76494b
evidence:
  - kind: code
    url: https://github.com/microsoft/AL-Go/pull/2342
    title: "microsoft/AL-Go#2342: Fix incremental builds poisoning buildMode-specific artifacts (#2337)"
    date: "2026-08-07"
    commit: 93300d797386e3faa2796faf09584b5c9e76494b
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 2342
repo: microsoft/AL-Go
source_id: al-go-prs
url: https://github.com/microsoft/AL-Go/pull/2342
kind: pr
base_branch: main
major: null
merged_at: "2026-08-07T07:33:32Z"
author: aholstrup1
author_type: User
community_contribution: false
labels: []
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 7
  additions: 152
  deletions: 6
  al: 5
apps: []
objects_touched: []
objects_unjoined:
  - path: Actions/DetermineBuildProject/DetermineBuildProject.ps1
    status: modified
    reason: not-in-snapshot
  - path: Actions/DetermineBuildProject/README.md
    status: modified
    reason: not-in-snapshot
  - path: Actions/DetermineBuildProject/action.yaml
    status: modified
    reason: not-in-snapshot
  - path: Templates/AppSource App/.github/workflows/_BuildALGoProject.yaml
    status: modified
    reason: not-in-snapshot
  - path: Templates/Per Tenant Extension/.github/workflows/_BuildALGoProject.yaml
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items: []
systems:
  - platform
  - development
quote: null
joined_against:
  major: null
  commit: null
---

# #2342 Fix incremental builds poisoning buildMode-specific artifacts (#2337)

> Fixed incremental builds in AL-Go that were corrupting buildMode-specific artifacts by re-publishing default build mode apps under incorrect artifact names, causing dependent projects to fail with runtime version mismatches.

[Pull request](https://github.com/microsoft/AL-Go/pull/2342) · merged into `main` on 2026-08-07 by aholstrup1 · 7 files (+152 -6), 5 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- DetermineBuildProject now receives buildMode parameter to download artifacts matching the current build mode dimension
- Build-mode-prefixed artifact masks are used instead of build-mode-agnostic masks to select correct artifacts
- Downloaded artifacts are extracted into build-mode-agnostic folders for later build steps, maintaining compatibility
- Fixes propagating corruption in incremental builds where each run becomes the baseline for the next
- Prevents AL1153 compiler errors from runtime version mismatches in multi-project repositories
- Behaviour changes for users or extensions.

## AL objects touched

- `Actions/DetermineBuildProject/DetermineBuildProject.ps1`: modified, not in the BC? snapshot
- `Actions/DetermineBuildProject/README.md`: modified, not in the BC? snapshot
- `Actions/DetermineBuildProject/action.yaml`: modified, not in the BC? snapshot
- `Templates/AppSource App/.github/workflows/_BuildALGoProject.yaml`: modified, not in the BC? snapshot
- `Templates/Per Tenant Extension/.github/workflows/_BuildALGoProject.yaml`: modified, not in the BC? snapshot

## Context

- Systems: platform, development

Source: metadata of a merged pull request in microsoft/AL-Go (al-go): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
