File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Use a minimal base image
22FROM ubuntu:latest
33
4+ ARG DEBIAN_FRONTEND=noninteractive
45RUN apt-get update && apt-get install -y \
56 python3 \
67 openjdk-17-jdk \
78 gcc \
89 g++ \
910 bash \
1011 golang-go \
11- mono-complete \
12+ mono-devel \
1213 rustc \
1314 && rm -rf /var/lib/apt/lists/*
1415
Original file line number Diff line number Diff line change @@ -209,7 +209,14 @@ export default function ProblemView({
209209 height = { `${ ( 80 * codeSize ) / 100 } vh` }
210210 extensions = { [
211211 loadLanguage (
212- language as "java" | "python" | "csharp" | "cpp" | "c" | "rust" | "go" ,
212+ language as
213+ | "java"
214+ | "python"
215+ | "csharp"
216+ | "cpp"
217+ | "c"
218+ | "rust"
219+ | "go" ,
213220 ) ! ,
214221 ] } //Typescript shenanigans
215222 basicSetup = { {
Original file line number Diff line number Diff line change @@ -206,12 +206,12 @@ export const codeRouter = createTRPCRouter({
206206 } ,
207207 rust : {
208208 ext : "rs" ,
209- compile : `rustc ${ codePath } .rs` ,
209+ compile : `rustc --out-dir ${ codePathFolder } ${ codePath } .rs` ,
210210 run : `./${ ctx . userId } ${ input . name } ` ,
211211 } ,
212212 go : {
213213 ext : "go" ,
214- run : `go run ${ codePath } .go` ,
214+ run : `go run ${ ctx . userId } ${ input . name } .go` ,
215215 } ,
216216 } ;
217217 const langObject = langSearch [ input . lang ] ?? "Error" ; //We have the appropriate necessities for our language stored in this object
You can’t perform that action at this time.
0 commit comments