Commit bbac3a0
committed
Confirm a pinned dataset version still exists before reusing it
When the local file was unchanged and the declaration pinned a version, reconciliation returned that version without asking the service anything. Deleting the pinned version therefore left create reporting it unchanged while �ersions list showed nothing and the eval pointed at a version that was gone.
A pin settles which version to use, not whether it is still there, so the pinned branch now reads it the same way the already-registered branch above does. Only a confirmed 404 refuses; any other read failure leaves the pin alone rather than turning a transient error into a failed deploy.
Not covered by a unit test: the branch is only reachable once getEnvValue returns a recorded fingerprint, which needs a live azd client. Found by a bug bash agent against the published feed.1 parent 0f80154 commit bbac3a0
1 file changed
Lines changed: 10 additions & 0 deletions
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
105 | 115 | | |
106 | 116 | | |
107 | 117 | | |
| |||
0 commit comments