Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Self-healing-LLM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ammar Ahmed
Self-healing-LLM
Commits
930b0781
Commit
930b0781
authored
7 months ago
by
Aleksander Einarsen
Browse files
Options
Downloads
Patches
Plain Diff
Marked as deprecated, fixed a code typo for dependencies
parent
ba68246c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/compiler/go-compiler/go_compiler.go
+4
-2
4 additions, 2 deletions
modules/compiler/go-compiler/go_compiler.go
modules/compiler/rust-compiler/rust_compiler.go
+2
-0
2 additions, 0 deletions
modules/compiler/rust-compiler/rust_compiler.go
with
6 additions
and
2 deletions
modules/compiler/go-compiler/go_compiler.go
+
4
−
2
View file @
930b0781
...
...
@@ -5,13 +5,15 @@ import (
"runtime"
)
// Deprecated: Use `go_compiler_v2.NewGoCompiler` instead
//
// CompileStringToGo tries to compile a string of go code to a go executable, and returns the compiler output and an error.
// The function does not produce any executables, since they are deleted after the function ends.
func
CompileStringToGo
(
code
string
,
filename
string
,
dependencies
...
string
)
(
string
,
error
)
{
func
CompileStringToGo
(
code
string
,
filename
string
,
_
...
string
)
(
string
,
error
)
{
// Get the platform
OS
:=
runtime
.
GOOS
// SetupEnvironment
return
compiler
.
InitCompiler
(
compiler
.
OS
(
OS
),
compiler
.
Go
,
code
,
filename
,
dependencies
...
)
.
Compile
()
return
compiler
.
InitCompiler
(
compiler
.
OS
(
OS
),
compiler
.
Go
,
code
,
filename
)
.
Compile
()
}
This diff is collapsed.
Click to expand it.
modules/compiler/rust-compiler/rust_compiler.go
+
2
−
0
View file @
930b0781
...
...
@@ -5,6 +5,8 @@ import (
"runtime"
)
// Deprecated: Use `rust_compiler_v2.NewRustCompiler` instead
//
// CompileStringToRust compiles a string of go code to a rust executable
func
CompileStringToRust
(
code
string
,
filename
string
,
dependencies
...
string
)
(
string
,
error
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment