-
Notifications
You must be signed in to change notification settings - Fork 730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish with sources part 1 #11896
Publish with sources part 1 #11896
Conversation
Test this change out locally with the following install scripts (Action run 6331540643) VSCode
Azure CLI
|
f90cba6
to
c59ef8b
Compare
c59ef8b
to
02eb900
Compare
src/Bicep.RegistryModuleTool.TestFixtures/MockFactories/MockFileSystemFactory.cs
Show resolved
Hide resolved
I saw the other comment. Makes sense if the feature is temporary. In reply to: 1735977506 Refers to: src/vscode-bicep/schemas/bicepconfig.schema.json:625 in 8901b7b. [](commit_id = 8901b7b, deletion_comment = False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought all experimental features were temporary by definition. No? |
Microsoft Reviewers: Open in CodeFlow
Draft design doc: https://gist.github.com/StephenWeatherford/723d1a8ac530cfd4ba734d6aef0c545a
CHANGES:
lang server
new temporary feature flag "publishSource"
Added "bicepSources" stream parameter to PublishArtifact paths (thinking of changing this to a SourceArchive reference, since that's what the stream is) and module dispatcher.
AzureContainerRegistryManager - moved creation of layers to callers (documentationUri/description concepts are better handled by the module-specific code)
Added TryGetSource to ArtifactRegistry classes
OciModuleRegistry.cs
new SourceArchive - Contains the individual source code files for a Bicep file and all of its dependencies.
ISourceFile - added ability to return its exact source in text so that SourceArchive can retrieve it from a compilation group
vscode/lang server (these changes apply even if feature flag not on):
Testing
Example of registry cache with restored source:
A look inside the source.tar.gz file:
An example __metadata file (there's work to be done, including removing sensitive path information from files)