Apple is Apple
article thumbnail
CI 세팅 중 오류
Git & Github/Trouble shooting 2023. 11. 27. 15:30

원인 및 시도 로컬에서만 관리되는 키 값(local.properties)이 있는데, 이것은 gitignore를 통해 github에 올라가지 않는다. build.gradle에서는 local.properties에 있는 키 값을 가져와 사용을 해야 하는데, github action을 통해 빌드를 하면 local.properties파일이 없기 때문에 정상적인 빌드가 되지 않는다. 그래서 github 상에서 secret으로 값을 주입을 해서 사용해야 되는데 키 값이 제대로 주입이 안되는 현상이 발생하여 build.gradle에서 키 값을 찾지 못해 null로 리턴하는 현상을 발견하였다. A problem occurred evaluating project ':app'. > Parameter specified as ..

article thumbnail
[Error] Your configuration specifies to merge with the ref 'refs/heads/main'from the remote, but no such ref was fetched.
Git & Github/Trouble shooting 2023. 7. 17. 19:43

내일배움캠프 과제 repository를 파서 git, github를 함께 연습하면서 과제를 하다가 git pull을 하는 상황이었다. 이때, Your configuration specifies to merge with the ref 'refs/heads/main'from the remote, but no such ref was fetched.라는 에러가 발생하며 pull이 되지 않았다. 잘 이해가 안되어 구글링을 해보니 'refs/heads/main' 즉, main브랜치가 local repository에만 존재하고 remote repository에는 존재하지 않아 충돌이 일어나면서 발생하는 에러였다. 처음에는 의아했다. 분명 이전까지는 기능을 짜고 했을 때, 갑자기 안 되는 것이었다. 곰곰이 생각하다가 ..