gofar's People
gofar's Issues
git config 가 없는 프로젝트에서 프로젝트 베이스 폴더 선택 로직 보완
현재 기능
- 패키징할 소스의 경우 git 의 config 를 읽어서 해당 디렉토리를 프로젝트의 base 디렉토리로 삼아서 패키징 진행
추가 요구 사항
- 아직 GitHub 에 공유하지 않은 프로젝트(git config 내용이 없는)의 경우는 프로젝트 명과 프로세스(혹은 바이너리)명이 동일하면 문제가 없으나
만약 프로젝트명과 프로세스명이 다를 경우 정상적으로 패키징 되지 않는 상황
예) /gowork/src/proa/cmd/prob 의 경우 생성하려는 패키징(프로세스) 명은 prob 인데 프로그램에서는 proa라는 폴더가 베이스 폴더인지 알수가 없음
따라서 /gowork/src/proa/cmd/prob 하위에서 리소스 파일등을 찾으려 하기에 정상적으로 패키징이 안됨
보완 코드 방향
- 만약 git config 가 없는등 프로젝트 베이스 폴더를 명확하게 지정하지 못할 경우, 프로세스명의 상위 폴더가 cmd 라는 이름을 가질 경우에는 1 depth 더 올라가서 해당 폴더를 프로젝트 베이스 폴더라고 결정한다
예) /gowork/src/proa/cmd/prob 의 경우 gofer prob 라고 하면 /gowork/src/proa/cmd/prob 폴더를 먼저 찾게 됨. 이때 상위가 cmd 폴더이므로 1 depth 더 들어가서 proa 라는 폴더를 프로젝트 베이스 폴더로 가정하여 진행한다
gofar 패키징시에 git last commit 메시지 포함
현재 기능
패키징할때 현재 소스의 branch 와 commit hash 정보만 deployment.json 에 담고 있다.
추가 요구 사항
추가로 현재 commit 의 commit message 도 deployment.json 에 담도록 한다
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.